Find the sum of array(list) elements in Python

python program to Find The Sum Of Array (List) Elements

In this tutorial, we will learn writing python program to create an array (list in case of python) and calculate the sum of elements stored in the array (list). Calculating the sum of elements in a list is a basic yet essential task in Python programming. It involves adding up all the numbers in a … Read more

Insert element at given location in array(list) in Python

python program to Insert Element At Given Location In Array(List)

In this tutorial, we will learn writing the python program to insert an element at the given position of an array (list in case of python) and print the array (list). Problem Statement Our problem statement is, for a given array(list) we have to add an element at the given position (index). For example: Our … Read more

Python Program to Insert element at end of array(list)

python program to Insert An Element At End In The Array(List)

In this tutorial, we will learn writing the python program to insert an element at the end of an array (list in case of python) and print the array (list) after insertion as output. Problem Statement Our problem statement is we have to add an element given by the user, at the end of the … Read more

Python program to print length of an array(list)

print length of an array(list)

In this tutorial, we will learn writing the python program to create an array (list in case of python) and print the length (number of elements stored) in the array (list). Problem Statement For the given array, our program should return the length of the array as an output. For example: Our logic to print … Read more

Reverse an array(list) using while loop Python

python program to Print An Array(List) In Reverse Order

In this tutorial, we will learn writing python program to create an array (list in case of python) and return the reverse of elements stored in the array (list). Problem Statement Our program will first take the input of array (list) size and then the elements of the array (list) by the user. After applying … Read more

Python program to print an array(list) in reverse order

print an array(list) in reverse order

In this tutorial we will learn writing program in python to create an array (list in case of python) and return the reverse of elements stored in the array (list). Problem Statement Our program will first take the input of array (list) size and then the elements of the array (list). And return the reverse … Read more

Python program to calculate simple interest

Calculate Simple Interest in python

In this tutorial, we are going to learn writing the python program to calculate the simple interest from given principal, rate of interest, and time. Problem Statement For the inputs given by the user, calculate the simple interest. For example: Our logic to calculate simple interest Algorithm to calculate simple interest Python code to calculate … Read more

Python program to convert Fahrenheit into Celsius

python program to Convert Fahrenheit Into Celsius

In this tutorial, we are going to learn writing python program to convert given temperature Fahrenheit into Celsius. Problem Statement For any given temperature input by the user in Fahrenheit , we have to convert the temperature into Celsius. For example: Our Logic to convert fahrenheit into celsius Algorithm to convert Fahrenheit into Celsius Python … Read more

Python Program to find l.c.m. of two numbers

python program to Find L.C.M. Of Two Numbers

In this tutorial, we are going to learn writing the python program to calculate the least common multiple of two numbers. Problem Statement For any two numbers given by the user as an input, we have to calculate and print the l.c.m. of that numbers using python programming language.  For example: Our logic to find … Read more

Python program to Count alphabets, digits, special char in string

python program to Count Alphabets, Digits, Special Char In String

In this tutorial, we are going to learn python program to count the number of alphabets, digits, and special characters present in an input string from the user. Problem Statement For any input string, we are going to print the number of alphabets (‘a’-‘z’ and ‘A’-‘Z’), the number of digits(0-9), and the number of special … Read more