test if something is in string data type code example Example: if type is string python isinstance(s, str)