Module 4 introduced match and case as a tidy replacement for a chain of ifs that compare one value with constants. That is the smallest use of it. The real feature, added in Python 3.10, matches the shape of data: a list of a certain form, a dictionary with certain keys, an object of a certain class with certain attributes, and it pulls out the parts that it finds as it goes. This lesson shows each kind of pattern, with the rules that keep them from surprising you.
More lessons in Complete Python Programming