News

The “if statement” in Python does this specifically by testing whether a statement is true, and then executing a code block only if it is. In other words: “IF this is true, THEN do this.” ...
Each case statement is followed by a pattern to match against. In the above example we’re using simple strings as our match targets, but more complex matches are possible.