This feature, used in Python 3.10+, is an alternative to if/elif/else blocks. See how case and match statements are used.
Writing Cleaner, More Efficient Python Code with the Walrus Operator