Commit 810547c5 by BellCodeEditor

save project

parent 97bc92b5
Showing with 1 additions and 5 deletions
...@@ -2,8 +2,4 @@ with open(r"c:\Users\lenovo\Documents\lesson13_2\sales_list.txt","r",encoding="u ...@@ -2,8 +2,4 @@ with open(r"c:\Users\lenovo\Documents\lesson13_2\sales_list.txt","r",encoding="u
a = q.readlines() a = q.readlines()
for i in a: for i in a:
data = i.split() data = i.split()
sum = 0 print(data[1:])
for s in data[1:]:
sum += int(s)
b = data[0] + str(sum)
print(b)
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