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

Didier Borel
Didier Borel
2,837 Points

even_odd return true or false

I can't seem to figure this one out, why is it wrong, what is the correct answer? this

even.py
even_odd(num)
if num % 2==int:
    return(True)
else:
    return(False)

1 Answer

Antonio De Rose
Antonio De Rose
20,857 Points
even_odd(num) #you are missing the keyword, on how to define a function, missing the ending colon 
if num % 2==int: #you are missing the indentation, then you should not be checking the result with an int
    return(True)
else:
    return(False)