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

Hidir Bolaji
Hidir Bolaji
Python Web Development Techdegree Student 682 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
177,523 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.