Problem 2: Even or Odd Checker Function
Easypython
Learn the Concept: FunctionsProblem 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
text7
Example Output
textOdd
Concepts Covered
Functions, return, modulus operator, conditionals.
Related Problems
- Problem 1: Simple Interest Calculator FunctionEasy · pythonSolve Problem
- Problem 3: Average of a List FunctionEasy · pythonSolve Problem
- Problem 4: Greeting Function with Default ArgumentEasy · pythonSolve Problem