Commit ce9e98e9 by BellCodeEditor

save project

parent 5290f38f
Showing with 7 additions and 3 deletions
...@@ -4,9 +4,13 @@ with open(r'c:\Users\rache\Documents\lesson13-1\sales_list.txt',"r",encoding='ut ...@@ -4,9 +4,13 @@ with open(r'c:\Users\rache\Documents\lesson13-1\sales_list.txt',"r",encoding='ut
for i in a: for i in a:
ggg=i.split() ggg=i.split()
print(ggg[0]) # print(ggg[0])
print(ggg[1:]) # print(ggg[1:])
sss=0
for iii in ggg[1:]
sss+=int(iii)
aaa=ggg[0]+":"+str(sss)
print(aaa)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment