Python Program to find the LCM of two numbers

Hello everyone, welcome back to programminginpython.com. Here I am going to tell a simple logic by which we can find the LCM of two numbers in python. LCM means Least Common Multiple, for a given …

Python program to find number of digits in a number

Hello everyone, welcome back to programminginpython.com! Here in this post I will show you how to find the number of digits in a number. A pretty simple logic. You can watch this video on Youtube …

Python program to find area of triangle (given base and height)

Hello everybody, welcome back! Here we learn how to find the area of a triangle when base and height of a triangle are given. We calculate the area by multiplying base and height and dividing it …

Python program to find a number is prime or composite

Hello people, welcome back! Here we discuss a python program which 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, 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 to …

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

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