Proper way to assert type of variable in Python
Proper way to assert type of variable in Python Question: In using a function, I wish to ensure that the type of the variables are as expected. How to do it right? Here is an example fake function trying to do just this before going on with its role: def my_print(begin, text, end): “””Print ‘text’ …