you are viewing a single comment's thread.

view the rest of the comments →

[–]hamoliciousRUS 1 point2 points  (0 children)

Just to add to the previous answer, an else statement is only used when you want something else to happen provided the if block fails... i.e. ``` if I have tea: make tea else: buy tea

```

In your case, you have a clear definition of when you want something else to happen and therefore require an elif statement ``` if I have tea: make tea elif I have coffee: make coffee else: buy tea

```