Python program to find a number is prime or composite

Hello people, welcome back! Here we discuss a python program that finds whether a given number is a prime number or composite number or neither of them. Definition: A number which is greater than 1 …

Find square root of a number using sqrt() function

Hello everyone, Welcome back! Here we discuss a very simple python program which finds the square root of a given number using a module called Math and use one of its method sqrt(). In the …

Find square root of a number using exponential operation

Hello everyone, welcome back! Here we learn about a python program which finds the square root of a given number. We find the square-root of a number using exponential operations. Here I calculate the square-root …

Python program to calculate the sum of elements in a list

Hello everyone, I am back to discuss a new python program. Here we learn how to sum all the elements in a list quite easily. We use a predefined function called sum() and apply it …

Python program to find the largest and smallest number in a list

Hello everybody, this is a Python program that finds out the smallest and largest number on the list. Here we use 2 predefined functions min() and max() which check for the smallest and largest number in a …

Python Program to find the Biggest and Smallest of 3 numbers

Hello people, here we discuss a simple python program which finds the biggest and smallest number out of given three numbers. Here we use concept of functions in this program. We use two functions biggest() …

Python Program to check Armstrong number or not

Hello readers, welcome back, here is another simple python program which checks whether a number is an Armstrong number or not. Generally, a number is said to be an Armstrong number if an n -digit …

Python program to check whether a number is Palindrome or not

A simple python program which checks whether a number is a palindrome or not. Generally, a number is said to be a palindrome number if its reverse is same as the original number. For Example, 121 …