how to check is a variable is a boolean in pythion code example Example: python type checking boolean isinstance(x[0], (int, float))