Match case statements in Python

preview_player
Показать описание
This video covers an alternative to the if statement: The match case. A powerful tool to control the flow of code.
Рекомендации по теме
Комментарии
Автор

Thank you for your awesome videos.
The quality of this is so high! I greatly appreciate your work!

MrArecius
Автор

It's only real advantage over if/elif is readability due to the nesting. Though it may be better performance wise as well I've never tested.

mking
Автор

it's very useful when you're creating a menu in pygame

stark_kun
Автор

so much clean, what is code compiler?

SougataPaul-ppwp
Автор

I got one more python wepon..thanks sir.

ranjanadissanayaka
Автор

I would love to be always your the first viewer

hdweuhd
Автор

I think this is unnecessary. I used case in Bash. Python is simple and clear, and this is a very good approach. If is enough.

linuxeducation
Автор

Mcoding covered this topic correctly unlike this dude.

Aceptron