Sometimes, we need multiple condition blocks to handle different cases. For example, identifying an animal based on the sounds they make.
- bark -> It's a Dog
- meow -> It's a Cat
- moo -> It's a Cow
- else -> Animal sound was not identified
We can have such multiple conditions using the elif keyword.
Python will go through each of these conditions, until one of them matches. If none of the if and elif conditions match, the else block will be executed.