how to know if a parameter is string python code example Example: if type is string python isinstance(s, str)