what is the reason why Python doesn't have switch statement ?
Rejinacm
0
Newbie Poster
Recommended Answers
Jump to PostProbably only Guido knows for sure. This topic has come up a lot in the past. An if/elif chain is as concise as switch/case and allows for tests other than equality, so in some sense is more powerful. But it does not have the "semantic familiarity" of a switch statement, …
All 3 Replies
BearofNH
104
Posting Whiz
Gribouillis
1,391
Programming Explorer
Team Colleague
sneekula
969
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.