how to test if a value is an int or string python code example Example: python is integer (1.23).is_integer() # Returns false