Commit d8380209 by BellCodeEditor

save project

parent a07306f8
Showing with 7 additions and 1 deletions
......@@ -3,4 +3,10 @@ with open(r'C:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
#print(a)
for i in a:
c=i.split()
print(c[0])
# print(c[0])
d=0
for b in c[1:]:
d+=int(b)
print(c[0]+str(d))
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