Commit 391f49d3 by BellCodeEditor

save project

parent fc764b1d
Showing with 11 additions and 0 deletions
with open(r"c:\Users\Administrator\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