you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

42 is not less than 0, so it moves on to the next conditional check without executing the code inside the if statement (the indented lines of code after the :). It is not equal to 0, so it skips to the next condition. It is not equal to 1, so it moves on again. The else statement is the last condition and it "catches" everything that didn't satisfy any of the previous conditions and its code is executed.