[1] initial commit

This commit is contained in:
osininyai 2026-05-21 13:55:57 +03:00
parent 4e29dfb4bb
commit 2163ccd0aa
9 changed files with 0 additions and 5 deletions

View File

@ -5,7 +5,6 @@ import csv
import codecs
def insert(lisst,name,phone):
#global lisst
if len(lisst)==0:
entry={"name":name,"phone":phone,"next":None}
lisst.append(entry)
@ -32,13 +31,11 @@ def insert(lisst,name,phone):
return lisst
def find(lisst, name):
#global lisst
if len(lisst)>0:
if lisst[0]["name"]==name:
return lisst[0]["phone"]
elif lisst[0]["next"]!=None:
nexxt=lisst[0]["next"]
#print(nexxt)
while nexxt["next"]!=None:
if nexxt["name"]==name:
return nexxt["phone"]
@ -50,7 +47,6 @@ def find(lisst, name):
def delete(lisst,name):
#global lisst
if len(lisst)>0:
if lisst[0]["name"]==name:
if lisst[0]["next"]!=None:
@ -128,7 +124,6 @@ def Shell(names,phones):
return names,phones
def list_all(lisst):
#global lisst
names=[]
phones=[]
if len(lisst)>0:

View File

Can't render this file because it has a wrong number of fields in line 9.