print("Is test_int integer? : " + str(isinstance(test_int, int))) print("Is test_int string? : " + str(isinstance(test_int, str))) print("Is test_list integer ...
Use isinstance() rather than type() for a typecheck. The idiomatic way to perform an explicit typecheck in Python is to use isinstance(x, Y) rather than type(x) == Y, type(x) is Y. Though there are ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results