Commit 779da893 by BellCodeEditor

save project

parent dc64ac54
Showing with 14 additions and 2 deletions
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','w',encoding='utf-8')
\ No newline at end of file
with open(r'd:\sales_list.txt','r',encoding='utf-8') as a:
b=a.readlines()
for i in b:
c=i.split()
d=c[1:]
m=0
for e in d:
m+=int(e)
print(m)
\ 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