When one value has to be compared with many possibilities, a long elif chain repeats itself. The match statement, added in Python 3.10, is a cleaner way to say it. It can also take values apart, which makes it more than a switch statement.
More lessons in Complete Python Programming