Compare commits

..

2 Commits

Author SHA1 Message Date
98d0fcdebb [1] Функция 2026-05-03 19:07:02 +03:00
3d82bdd4cd [0] initial commit 2026-04-30 21:28:06 +03:00
2 changed files with 8 additions and 0 deletions

1
nikolaevda/427.md Normal file
View File

@ -0,0 +1 @@

View File

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