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