I got 99 problems and a switch aint one of them



I dont know what im doing wrong plz help if posibly

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

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


Instructions state that if answer is greater (>) than 5, return 1. If answer is less (<) than 5, return -1. You seem to have that mixed up.


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