check if a variable is a sting in pythom code example Example: if type is string python isinstance(s, str)