Sep-12-2019, 02:02 AM
while testing what a given string means by applying a few tests in a stack of elifs the next test is to see if giving it to a function will or will not throw an exception. is there a good way to include such a test in the stack of elifs? a couple of examples for the function include int() and float() but it could be something else.