check if a variable is string or not - python code example Example: if type is string python isinstance(s, str)