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.
Single line statements such as the above are valid syntax-wise; however, although it may be convenient, it may make your code more difficult to read, so we recommend you indent the suite on the next ...
The traditional ways to do this in Python aren’t elegant. 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 ...