Python-Switch Case using a dictionary

--

Image source: maxresdefault.jpg (1280×720) (ytimg.com)

A simple action map that can save you writing multiple if else conditions in python.

Code:

Hope this helped, please feel free to suggest changes, improvements or alternatives.

Thanks!

--

--

No responses yet