News

To do this, we write “if” and then the statement we want to test. This is called the “test statement.” When checking the value of something, we use two equals signs.
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 ...