Commit 3b2ae88a by BellCodeEditor

save project

parent 55288a06
Showing with 1 additions and 1 deletions
......@@ -3,7 +3,7 @@ with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",enco
for i in txt1:
sum=0
list=i.split()
for i in list[1:0]:
for j in list[1:]:
sum+=int(j)
result=list[0]+str(sum)
print(result)
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