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