0
does python support switch or case statement in python?
5 Answers
+ 6
No. If you want to use switch/case, you use a dict instead.
+ 1
Shivendra Kumar
Please ask different questions on separate posts.
Read the rules and guidelines of the forum here:
https://www.sololearn.com/discuss/1316935/?ref=app
0
why cannot lambda forms in python contain statements?
0
how will you check in a string that all characters are alphanumeric?
0
Shivendra Kumar ,
Python 3.10 supports the match case syntax. Sololearn uses Python 3.9.16 though. Try it somewhere else.
https://peps.python.org/pep-0636/