Write Python Program to print if a Number is Odd or Even


Topic: Write Python Program to print if a Number is Odd or Even

Solution

num = 102
if (num % 2) == 0:
   print(f"{num} is Even")
else:
   print(f"{num} is Odd")
   



List all Python Programs