how to properly use python's isinstance() to check if a variable is a number?,"isinstance(var, (int, float, complex))"