code: def append(self, item):
          
          if isinstance(item, list):
              self.extend(item)
          elif not self:
              list.append(self, item)
          elif item.__class__ == self[0].__class__:
              list.append(self, item)
          else:
              raise exceptions.WrongListItemType(item.__class__.__name__,
                                                 self[0].__class__.__name__)
docs: Append one item to the list.
  
          Args:
              item: Item to be appended.
  
          Raises:
              :exc:`~.exceptions.WrongListItemType`: If an item has a different
                  type than the first item to be stored.