Commit 3a47282d by BellCodeEditor

save project

parent eb807a51
Showing with 2 additions and 1 deletions
...@@ -3,8 +3,9 @@ with open('c:\\Users\\Administrator\\Documents\\lesson13-1\sales_list.txt','r',e ...@@ -3,8 +3,9 @@ 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)
print(f) print(f)
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