The swictch case construct is a construct used in a lot of languages to substitute long if then else statements.
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case.

For example in C:

Python doesn’t have the switch case statement, instead you have to implement it in pythonic way, you can use the dictionary mapping, associating to each value a function. So the analogous code for the above C code is as follows: