01Chapter 1: Your first match statementAssume Python 3.10 or later. You should know functions, return, conditionals, and basic lists, tuples, and dictionaries.1 min read
02Chapter 2: Destructuring lists and tuplesAssume Python 3.10 or later, plus basic knowledge of functions, conditionals, lists, tuples, dictionaries, classes, and unpacking.1 min read
03Chapter 3: Matching class instancesAssume Python 3.10 or later, basic functions and conditionals, and familiarity with classes, dataclasses, and unpacking. A class pattern checks an object's type and selected attributes.1 min read