News

Essentially, a switch statement takes a variable and tests it for equality against a number of different cases. If none of the cases match, then the default case is invoked.
A proposal under consideration by Python’s development team would finally bring pattern matching statements to the language.
Syntax: Begin with converting a single block to a Switch block to see and learn the Python syntax, and progress to more complex code when you're ready.