Commit 7abcea85 by BellCodeEditor

save project

parent 3a7ddf46
Showing with 1 additions and 1 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
with open(r'c:\Users\EDZ\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as a: with open(r'c:\Users\EDZ\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as a:
for i in a.readlines(): for i in a.readlines():
i=i.split() i=i.split()
print(i[0],end=' ') print(i[0],end=': ')
s=0 s=0
for j in i[1:]: for j in i[1:]:
s += int(j) s += int(j)
......
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