code: def delete_lines(self, lines):
          
          for k, i in enumerate(lines):
              del self[i-k]
docs: Delete all lines with given line numbers.
  
          Args:
              lines (list): List of integers corresponding to line numbers to delete