
Mina Salehi
1,282 Pointsmy code is running correctly in workspace but i keep getting errors on practice forum
def is_odd(num):
num_check = num % 2
if num_check == 0:
print("False")
else:
print("True")
num_value = int(input("plese enter a number: "))
is_odd(num_value)
1 Answer

KRIS NIKOLAISEN
Pro Student 51,735 PointsSome hints:
- the challenge expects you to return values not print them.
- the values to return are booleans
- only include the code for the function. remove any test code.
Mina Salehi
1,282 PointsMina Salehi
1,282 PointsThanks it seems i have a hard time understanding what challenges expect :/