[1] Создание функции генерации узла create_node
This commit is contained in:
parent
9cf5ffa339
commit
ae9b2a46b6
13
skorohodovsa/task_1/linked_list.py
Normal file
13
skorohodovsa/task_1/linked_list.py
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
|
||||||
|
def create_node(
|
||||||
|
name: str,
|
||||||
|
phone: str,
|
||||||
|
next: dict = None
|
||||||
|
):
|
||||||
|
return {
|
||||||
|
'name': name,
|
||||||
|
'phone': phone,
|
||||||
|
'next': next
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user