Challenge: Even or Odd
Completed
Read a whole number and say whether it is even or odd.
Input
One whole number.
Output
Even or Odd.
Example
Input
4
Output
Even
Editor
Python
Hints
A number is even when n % 2 == 0.
Solution explanation
The remainder after dividing by 2 is 0 for even numbers and 1 for odd numbers.
Show solution
n = int(input())
if n % 2 == 0:
print("Even")
else:
print("Odd")