A manner of replicating the functionality of switch
and case
in other languages using variable type arguments
to Python's except
keyword.
Python's except
keyword takes as an argument either a type or tuple of types specifying what exceptions
to capture (you can also bind the exception object to a variable, but we don't care about that right now.) it functions
like so:
try: