I am having a theoretical issue in Python. I don’t get the second IF in the code below. To me, a single number can be both <= 5 and <9. For example the number 4. Does Python treat it differently? Meaning, does the code implies that the second IF is <9 but also >5?
if(rating <= 5):
return “Avoid at all costs!”
if(rating < 9):
return “This one was fun.”
return "Outstanding!"This text will be hidden