Commit fd6b7093 by BellCodeEditor

save project

parent 5ec53ebb
Showing with 10 additions and 0 deletions
with open(r"c:\Users\admin\Documents\lesson13-1\sales_list.txt","r",encoding="UTF-8") as a:
a = a.readlines()
for i in a:
i = i.split()
s=0
for k in i[1:]:
k=int(k)
s += k
print(i[0],s)
\ No newline at end of file
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