I Got 99 Problems, But a Switch Ain't One


#1

def greater_less_equal_5(answer):
    if 5<6:
        return 1
    elif 5>4:          
        return 0
    else: 5=5
        return -1
        
print greater_less_equal_5(4)
print greater_less_equal_5(5)
print greater_less-

#2

Hi inside your if and else if statement you should compare the argument answer with any number you want then ............remove the 5=5 after else:
then here

print greater_less-

you should finish that.


#3

4 posts were split to a new topic: I'm still stuck


#7

2 posts were split to a new topic: I tied my code and iit doesn't work


#14

6 posts were split to a new topic: What am I doing wrong?


#20

2 posts were split to a new topic: Can someone help me with this code


#22

9 posts were split to a new topic: This is my input


#32