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