Resolved: Why doesn't Python have a switch statement? #it #answer #fix
Resolved: Why doesn't Python have a switch statement? #it #answer #fix
Why doesn’t Python have a switch statement?
What is the reason Python doesn’t have switch statement?
Answer [by Keltia]: Why doesn’t Python have a switch statement?
Probably because, like in Perl, you don’t need it to express the same thing?
I admit I appreciate Ruby having one though, it makes code cleaner than a series of if..elsif..else. YMMV :)
Answer [by mezoid]: Why doesn’t Python have a…
View On WordPress
















