Commit 849ec9eb by BellCodeEditor

save project

parent 8c9cdd86
Showing with 6 additions and 1 deletions
file1=open(r'C:\Users\pc\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
a = file1.readlines()
for i in a:
print(i)
a = i.split()
s = 0
for b in a[1:]:
s = s+int(b)
print(s)
file1.close()
\ 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