Does Python have an equivalent to Haxe switch cases?
I do a lot of programming in Haxe, which is honestly one of my favorite coding languages because of how easy it is to get used to. And one of the things I use the most in Haxe is these things called switch cases. Here's an example:
It's basically a really compact way of checking if a variable matches several values.
I'm wondering if Python has an equivalent to the Switch case or if I have to stick to messy if statements.