0

Can we use switch directly in python!?

asked in class

28th Jun 2018, 10:49 AM
sweta umrao
sweta umrao - avatar
2 ответов
+ 3
There is no switch statement in python. But you can implement one using a dictionary, or 'if' statement.
28th Jun 2018, 10:53 AM
Ulisses Cruz
Ulisses Cruz - avatar
28th Jun 2018, 11:32 AM
Ulisses Cruz
Ulisses Cruz - avatar