News

One well-known benefit of using mapping types such as dictionaries is that the searching is very fast compared to a sequential lookup as in the above if - elif - else statements or using a for loop, ...
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.
A proposal under consideration by Python’s development team would finally bring pattern matching statements to the language.