how to determine if a data type equals a string in python code example Example: if type is string python isinstance(s, str)