Commit 3a47282d by BellCodeEditor

save project

parent eb807a51
Showing with 1 additions and 0 deletions
...@@ -3,6 +3,7 @@ with open('c:\\Users\\Administrator\\Documents\\lesson13-1\sales_list.txt','r',e ...@@ -3,6 +3,7 @@ with open('c:\\Users\\Administrator\\Documents\\lesson13-1\sales_list.txt','r',e
s=0 s=0
for i in a: for i in a:
b=i.split() b=i.split()
s=0
for c in b[1:]: for c in b[1:]:
s=s+int(c) s=s+int(c)
f=b[0]+str(s) f=b[0]+str(s)
......
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