elif — Advanced Playground
Short for 'else if'; adds another condition to an if chain
Python Playground
Output
Click "Run" to execute your codeUse elif for simple value/range checks. Use match/case for destructuring complex data structures.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?