match/case statement in python does not allow use of list item as the case [duplicate]
This question already has answers here: Python match case shows error with list element as case. Expected “:” (2 answers) Closed 3 months ago. I have an os dependent program and I wanted to use a match/case statement and function to match a key input to its corresponding value. I have the “values” for each […]
match/case statement in python does not allow use of list item as the case [duplicate]
This question already has answers here: Python match case shows error with list element as case. Expected “:” (2 answers) Closed 3 months ago. I have an os dependent program and I wanted to use a match/case statement and function to match a key input to its corresponding value. I have the “values” for each […]