Here is code for a python program that reads an integer and determines and prints whether it’s odd or even.
# Python program that reads an integer and determines and prints whether it’s odd or even
userInput = int(input("Enter the number: "))
if a % 2 == 0:
print(userInput, "is even.")
else:
print(userInput, "is odd.")
# This code is contributed by Ahmad Shafiq