Python programs coding series - Number: Odd or Even

Check whether a number is Odd or Even

#Check whether the input is odd or even

x = int(input(“Enter the number:”))

if x % 2 == 0: print (str(x)+” is Even”) else: print(str(x) + ” is Odd”)

Output

Enter the number:5 5 is Odd