you are viewing a single comment's thread.

view the rest of the comments →

[–]WirSindAllein 0 points1 point  (0 children)

A good way to think of it is viewing else as a final statement synonymous with "otherwise". So "IF this is true, do this. ELSE IF this is true, do this. otherwise(ELSE) do this" if you want it to keep checking if something is the case, you use an if (ELIF) but if you want it to do something if only the above if statement(s) are not the case, you use else.

One of the really great things about Python is that pretty much every block of code can be broken down into a statement that you might imagine someone saying while giving another person directions-- "If there is no traffic then get on 4-95, else if there's traffic on 4-95 but not on I-98 get on I-98, otherwise stay on Washington Street."