else — Easy Playground
Catch-all branch when preceding if/elif conditions are all false
Python Playground
Output
Click "Run" to execute your codeelse runs when the if condition is False. Every if can have at most one else.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?