How to Write a Python Switch Statement
I’ll admit, I don’t use switch statements very often when programming. When I do, it has always been in Javascript. So when I found myself wanting to use a Python switch statement recently, I discovered that the switch/case statement doesn’t exist in the language. The Python Switch in a Nutshell If you don’t want to …