Skip to content
CampusEduX

Problem 2: Even or Odd Checker Function

Easypython
Learn the Concept: Functions

Problem Description

Write a function check_even_odd(number) that returns the string "Even" if the number is even, and "Odd" if it is odd.

Input

A single integer.

Output

The string "Even" or "Odd".

Constraints

  • Input can be positive, negative, or zero.

Example Input

text
7

Example Output

text
Odd

Concepts Covered

Functions, return, modulus operator, conditionals.

Related Problems

  • Problem 1: Simple Interest Calculator Function
    Easy · python
    Solve Problem
  • Problem 3: Average of a List Function
    Easy · python
    Solve Problem
  • Problem 4: Greeting Function with Default Argument
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...