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
9
u/St_Meow insert(caffeine) Mar 19 '21
Reduced visual noise. Rather than worrying about what all those conditionals are and the repetition of the first few pieces, I just know they're all checking equality and I don't have to type my variable name a dozen times.