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