Practise makes perfect 14/15 Doesn't work


#1



Practise makes perfect 14/15

I don't know why it doesn't work. Please help me


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)


#2

I believe you posted this in the wrong subcategory if you are referring to Practise makes perfect. There is a subcategory in Python for that. Also, Pmp 14/15 is remove_duplicates. Can you please provide a link to your question?


#3

It isnĀ“t matter taking into account that i fixed it.


#4

Ah ok. Good job fixing it!


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.