Emulate Switch case Python | 2 min Programming in python

preview_player
Показать описание
Emulate Switch case Python | 2 min Programming in python
#2min programming #python #lpthw

#subscribe for more video
#help me reach more Subscribers

Switch-case statement in Python. ... Most programming languages have switch/case because they don't have proper mapping constructs. You cannot map a value to a function, that's why they have it. But in Python, you can easily have a mapping table(dict) where a certain value maps to a certain function.
Рекомендации по теме