if elif and else
We can chain if statements.
Using the keywords elif and else. That way, we can walk through all options for the condition. Imagine a weather app: if snow, elif rain, elif thunder, else sunny. We can execute different code for each condition.
We can execute blocks of code using if-statements. We can also do that if we have multiple conditions.
Lets start with an if statement, like so:
It will make the decision based on the value of x, also known as the condition.
What if you want to have multiple cases?
In that case you can use elif