code: def isSequence(arg):
      
      if hasattr(arg, "strip"):
          return False
      if hasattr(arg, "__getslice__"):
          return True
      if hasattr(arg, "__iter__"):
          return True
      return False
docs: Check if input is iterable.