Compare commits

..

No commits in common. "struck-data-task1" and "develop" have entirely different histories.

2 changed files with 0 additions and 8 deletions

View File

@ -1 +0,0 @@

View File

@ -1,7 +0,0 @@
def ll_insert(head, name, phone):
""" проходит до конца (или сразу добавляет в конец) и возвращает новую голову
(если вставка в начало) или изменяет список по ссылке. Удобнее возвращать новую
голову, если вставка может быть в начало """
new_node = {'name': name, 'phone': phone, 'next': None}