Answers for "pyhtin check if int is even"

2

how to check if a number is even or odd in python

num = int(input("Enter a number: "))
if (num % 2) == 0:
   print("{0} is Even".format(num))
else:
   print("{0} is Odd".format(num))
Posted by: Guest on April-26-2021

Code answers related to "pyhtin check if int is even"

Python Answers by Framework

Browse Popular Code Answers by Language