If Exercise 1: Write a Program in Python to input number and find it is odd or even.
Ans: Input number and check if it is divisible by 2 or not using modulas operator inside if condition. 1
# Input number and find it is odd or even | ankitweblogic.com
a=int(input("Enter Number: "))
if (a%2==0):
print(a,"is even number")
else:
print(a,"is odd number")