7 lines
211 B
Python
7 lines
211 B
Python
number = input("Enter a number, and I'll tell you if it's even or odd: ")
|
|
number = int(number)
|
|
|
|
if number % 2 == 0:
|
|
print(f"\nThe number {number} is even.")
|
|
else:
|
|
print(f"\nThe number {number} is odd.")
|