Match case statements in Python

Match case statements in Python

Atlas

1 год назад

3,945 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ranjana Dissanayaka
Ranjana Dissanayaka - 12.10.2023 16:35

I got one more python wepon..thanks sir.

Ответить
Marshall King
Marshall King - 09.09.2023 21:46

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.

Ответить
STARK YT
STARK YT - 06.06.2023 22:28

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

Ответить
Linux Education
Linux Education - 27.05.2023 13:55

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.

Ответить
اسامه محمد
اسامه محمد - 27.05.2023 12:04

I would love to be always your the first viewer

Ответить
اسامه محمد
اسامه محمد - 27.05.2023 12:03

Keep being amazing

Ответить