CodeTestValidate

No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.

Challenge # 3

Even or Odd?

Objective

Determine whether a number is even or odd.

Instructions

  • You are given a variable number that holds an integer.

  • Use an if-else statement to check if the number is even or odd.

  • An even number has no remainder when divided by 2.

  • Print 'Even' if the number is even, otherwise print 'Odd'.

Constraints:
Do not use input(). • Assume `number` is an integer.
Exemple IO

Input: number = 4

Output: Even

Input: number = 7

Output: Odd

Input: number = 0

Output: Even

Try It Online!

Output:

Validate Your Results

Get your code reviewed and validated to understand what you did right and where you can improve.