Commit 4771fd33 by BellCodeEditor

save project

parent 8cfebbde
Showing with 5 additions and 2 deletions
...@@ -4,5 +4,8 @@ with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",enco ...@@ -4,5 +4,8 @@ with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",enco
for i in b: for i in b:
c=i.split() c=i.split()
print(c[0]) s=0
print(c[1:]) for q in c[1:]:
s+=int(q)
e=c[0]+str(s)
print(e)
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