News

One is to write an if/elif/else chain of expressions. The other is to store values to match as keys in a dictionary, then use the values to take an action—e.g., store a function as a value and ...
You can start writing Python code on that. ... We use if-elif-else when you have multiple conditions to check, one after the other. if condition1: # do this. elif condition2: ...