Python Python Basics (2015) Number Game App Even or Odd

even.py

What am I doing wrong/

even.py
def even_odd(num):

    if even_odd %2 = 0:
        return True
    else:
        return False

1 Answer

Greg Kaleka
Greg Kaleka
38,993 Points

Hey Nick,

You've pretty much got it, but inside your formula, even_odd doesn't mean anything! You want to use num, the value that was passed in.

Cheers :beers:

-Greg