1 Comment
User's avatar
Andy Au Lugo's avatar

num = int(input("Enter a number: "))

if num % 2 == 0:

print(f"{num} is even.")

else:

print(f"{num} is odd.")

Expand full comment