code: def append(self, item):
          
          if not isinstance(item, str):
              raise TypeError(
                  'Members of this object must be strings. '
                  'You supplied \"%s\"' % type(item))
          list.append(self, item)
docs: Adds an item to the list and checks it's a string.