How to use values stored in variables as case patterns?
I’m trying to understand the new structural pattern matching syntax in Python 3.10. I understand that it is possible to match on literal values like this:
I’m trying to understand the new structural pattern matching syntax in Python 3.10. I understand that it is possible to match on literal values like this: