Check Even or Odd

Beginner

🐍 Check Even or Odd

Your task is to write a function that checks if a number is even or odd!

In Python, a number is 'even' if it is perfectly divisible by 2, and 'odd' if it is not.

Your function will take one argument: a single number. It should return the string "even" if the number is even and "odd" if the number is odd.

Here's an example of how the function should work:

check_even_odd(2)

The output will be:

"even"

Another example:

check_even_odd(3)

The output will be:

"odd"

Are you ready? Let's help Mr. Number find out if he's even or odd! 🧐

Geek
Inputs

Arg 1:

2
Expected Output
"even"
Actual Output