Coming soon, in Python π 3.10: "Pattern Matching."
Looks sick!
No, this is not a switch statement. Pattern matching is very different.
With patterns, you get a small language to describe the structure of the values you want to match. Look at one of the examples to see how you can match an element of a tuple.
You can use patterns to match even more complex structures. You can nest them. You can have redundancy checking.
Pattern matching is a feature you can find in functional languages.
It's excellent that Python decided to add it! I'm really excited about it.