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