Math Programs
Python program to find Factorial of a given number
Hello people, I am back here to discuss how to find the factorial of a given number. Generally, a factorial on a given number is given by calculating its product with all the numbers below …
Python program to find area of a triangle (given all sides)
Hello everybody, welcome back! Here we learn how to find the area of a triangle when all the 3 sides of it are given. First, we calculate semi-perimeter s as sum of all sides divided …
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 …
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 …
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 …
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 …