How to Use a match case Statement
From Luke at https://learnpython.com/blog/python-match-case-statement/
Note that this will only work with Python 3.10 and above.
The match case Statement in Python
A basic implementation of match case statements looks like an if statement
in Python.
| |
It can simplify the flow control statements and make them a little bit more readable.
| |
This is easier than a if-elif-else or using something like a dict().