## Python program to check whether the given number is Even or Odd

So today we are going to write a Python program to check whether the given number is even or odd.   Logic: If number is completely divisible by 2 with remainder 0 then it is and even number otherwise the number is odd. As you must be aware ” % ” modulus is used to … Read more

## Program to swap two numbers in Python

Today we will write a program to swap two numbers in Python, we have two ways to do it: Swap using temporary variable. Swap without using temporary variable.   Program to swap two numbers in Python using temporary variable: a = 10 b = 20 print("before swapping\na=", a, " b=", b) temp = a a … Read more

## Program to find largest among three numbers in Python

Today we are going the write one of the simplest program in Python to find largest among three numbers. Here, we will input three numbers and our program will find the largest of them all.   Program to find largest among three numbers in Python: print("enter three numbers:") a = int(input()) b = int(input()) c … Read more