+ 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.

11th Feb 2022, 4:32 PM
The RoGam3rs
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
30th Jan 2024, 2:27 PM
Mafdi
Mafdi - avatar
+ 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.
30th Jan 2024, 1:49 PM
Rain
Rain - avatar
+ 1
Mafdi , Here's an alternate URL format to the same page. https://docs.python.org/3/reference/compound_stmts.html#the-match-statement
30th Jan 2024, 4:48 PM
Rain
Rain - avatar