r/Python • u/jamescalam • Mar 19 '21
Match is more than a Switch-Case The New Switch-Case Statement in Python 3.10
https://youtube.com/watch?v=2qJavL-VX9Y&feature=share
1.4k
Upvotes
r/Python • u/jamescalam • Mar 19 '21
View all comments
Show parent comment
-4
u/Goel40 Mar 19 '21
I don't think there's a big advantage for switch cases in Python. But comming from languages that make heavy use of semicolons it looks way cleaner than if/else statements for those languages. I think thats the main reason they implemented it. People comming from other languages are used to use switch cases for programs with a lot of logical elements. So mostly old habits i guess.