Using Dictionary For Switch Case Statement in Python

Using Dictionary For Switch Case Statement in Python

Mike Levin, SEO in NYC

9 лет назад

1,868 Просмотров

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


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

Turjak_art
Turjak_art - 14.11.2019 23:14

wow dude you needed over 8 min for that

Ответить
Elvis babah
Elvis babah - 07.07.2017 21:31

cool thanks

Ответить
Mike Levin, SEO in NYC
Mike Levin, SEO in NYC - 16.09.2014 23:17

Hey if any of you Pythonistas envy the switch / case statement from other languages, envy no more. Did you know that the common dictionary object provides an elegant and Pythonic equivalent to switch/case? It does!

Ответить