+ 1
How do make list of options in python?
I'm trying to figure out how to make one and I can't seem to find any on it does anybody know? i wanna make it to where they can select them too.
4 Answers
+ 3
Rain,
Thank you, I did not know about it before
Now I searched and learned a little about it:
"The match statement"
https://docs.python.org/3/reference/compound_stmts.html#:~:text=8.6.-,The%20match%20statement,-%C2%B6
+ 1
The RoGam3rs ,
Python 3.10 got the match compound statement added.
Sololearn currently runs Python 3.9.16, so match is not available.
Pydroid 3 (a Python IDE for Android) currently runs 3.11.4, so match is available.
I don't know about what versions other IDEs or website playgrounds run.