Curso_Intensivo_de_PYTHON/chapter_07/even_or_odd.py
2023-06-02 17:22:53 +02:00

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.")