## 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 …

All basic programs for people who started learning python programming language. Programs on different topics like operators, loops, decision making, numbers, strings, basic lists.

All the programs in this category are presented with a great explanation with screenshot of the executed output and source code is made available on GitHub platform.

Here all the topics are provided with some enough example programs, a few of them are

- Checking a number is even or odd
- Performing arithmetic operations like addition, subtraction, multiplication, division, floor division, modulus, exponential and power operations ( +, -, *, /, //, %, **).
- Programs on logical operations like AND, OR, NOT.
- Performing bitwise operations like Binary AND, Binary OR, Binary XOR, Binary one’s compliment. Binary Left Shift, Binary Right Shift (&, |, ^, ~, <<, >>).
- Reverse of a number
- Palindrome number
- Armstrong number

and many more such basic programs. Following are the programs listed in this category.

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

Hello people, here we discuss a simple python program which finds the biggest and smallest number out of given three numbers. Here we use python lists in this program. Here we add the 3 numbers …

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 …