I got 99 problems and a switch aint one of them


#1



https://www.codecademy.com/courses/python-beginner-BxUFN/3/4?curriculum_id=4f89dab3d788890003000096#


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
  else:
    return 0

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


#2

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.


#3

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