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

Hidir Bolaji
Hidir Bolaji
Python Development Techdegree Student 2,161 Points

What is wrong with this code?

create_a_function.py
def is_odd(odd):
    if odd % 2 != 0:
        print("True")
    else:
        print("False")
is_odd(5)

1 Answer

Steven Parker
Steven Parker
201,347 Points

The challenge instructions say "It should return True if the value is not divisible by 2.", but this function isn't currently returning anything.

Also, you won't need to "print" anything.