elifEasy Playground

Short for 'else if'; adds another condition to an if chain

Python Playground
Output
Click "Run" to execute your code

elif (else if) lets you test multiple conditions in sequence. Only the first matching branch runs.

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?