Python Practice Creating and Using Functions in Python Practice Functions That's Odd

odd numbers

i am looking to create a fucntion that determines if a number is even/odd
def is_odd (num):
    (float(num) % 2) > 0

1 Answer

Steven Parker
Steven Parker
200,540 Points

You're really close! You just need a "return" keyword to give your result back to the caller.

Also, while it won't affect passing the challenge, you don't need to convert the number with "float".