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