python type checking boolean code example Example: python type checking boolean isinstance(x[0], (int, float))