check if value is type string python code example Example: if type is string python isinstance(s, str)