Python program to calculate the power using ‘while-loop’

Calculate The Power Using While-Loop in python

In this tutorial, we are going to learn a python program to calculate the power of a given number without using inbuild python pow function. Problem Statement For any two numbers that are inputs given by the user, one is the base value let’s say it as ‘x’ and the other is the exponent let’s … Read more

Python program to calculate the power using ‘for-loop’

Calculate The Power Using For-Loop in python

In this tutorial, we are going to learn a python program to calculate the power of a given number. Problem Statement For any two numbers that are inputs given by the user, one is the base value let’s say it as ‘x’ and the other is the exponent let’s say it as ‘y’, we have … Read more

Python Program to Calculate power using ‘pow()’ method

Calculate The Power Using Pow() Method in python

In this tutorial, we are going to learn a python program to calculate the power of a given number. pow() Method in python In Python, the pow() function is used to calculate the power of a number, that is, to raise a number to the exponent of another. It’s a versatile function that can be … Read more

Python program to calculate the square of a number

Calculate The Square Of A Number in python

In this tutorial, we are going to learn a python program to calculate the square of a given number. Problem Statement For any number that are inputs given by the user, we have to print x2, i.e. square of that number.  For example: Our logic to calculate the square of a given number Algorithm to … Read more

Python program to calculate the cube of a number

Calculate The Cube Of A Number in python

In this tutorial, we are going to learn a python program to calculate the cube of a given number. Problem Statement For any number that are inputs given by the user, we have to print x3, i.e. cube of that number.  For example: Our logic to calculate the cube of a given number Algorithm to … Read more

Python program to calculate the square root of a number

Calculate The Square Root Of A Number in python

In this tutorial, we are going to learn a python program to calculate the square root of a given number. Problem Statement For any number that are inputs given by the user, we have to print the square root of that number.  For example: Our logic to calculate the square root of a given number … Read more

Python program to find smallest number among three

python program to Find Smallest Number Among Three

In this tutorial, we are going to learn a python program to find the smallest number among three numbers that are given by the user. Problem Statement For three numbers that are inputs given by the user, we have to print the smallest among those 3 numbers.  For example: Our Logic to find smallest number … Read more

Python program to calculate the factorial using iterative approach

Calculate The Factorial Using Iterative Approach in python

In this tutorial, we are going to learn a python program to find the factorial of the number given as input from the user. Problem Statement For any numbers that are input by the user, we have to calculate the factorial of that numbers. For example: Factorial of a number The factorial of a number … Read more

Python program to check given number is even or odd

Check Given Number Is Even Or Odd in python

In this tutorial, we are going to learn a python program to find a number given as input from the user is even or odd. Problem Statement For any number that is input by the user, we have to check if it is even or odd. For example: How to check if a number is … Read more

Python Program to Search an element in Singly linked list

python program to Search An Element In Singly Linked List

In this tutorial, we will learn writing python program to perform search operation to find an element in the singly linked list. Problem Statement Our program takes the element of the linked list from the user as the input. And then, it takes another input from the user to search the element in the linked … Read more