News

This post explains how to use if statements in Python. This will form the backbone of much of your code going forward! Else statements, nesting, + more.
Rejoice! Gone are the long chains of if…else statements, because switch statements will soon be here — sort of. What the Python gods are actually giving us are match statements. match s… ...
In contrast, you need to indent Python statements properly, or your program won’t run. You can use tabs or spaces, or even mix the two, but you have to be consistent.