Editor

Even or Odd

Programs with input · Beginner · about 3 min

Read a whole number and print whether it is even or odd, as 14 is even or 7 is odd. Zero and negative numbers can be typed too.

The prompts inside input() are not checked, only what you print.

Examples

You type:

14

The program prints:

14 is even

You type:

7

The program prints:

7 is odd
n = int(input("Number: "))
# Print whether it is even or odd
The solution opens after your first Check.