[Solved] Understanding how to use conditional statements with python [closed]


def greater_less_equal_5(answer):
    if answer>5 :
        return 1
    elif answer<5:          
        return -1
    else:
        return 0

print greater_less_equal_5(4)
print greater_less_equal_5(5)
print greater_less_equal_5(6)

Try this

solved Understanding how to use conditional statements with python [closed]