Commit 6828ab7d by BellCodeEditor

save project

parent 779a1ff8
Showing with 5 additions and 2 deletions
with open(r'C:\Users\Thinkpad\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as file1:
a=file1.readlines()
b=0
for i in a:
q=i.split()
print(q[1:])
\ No newline at end of file
for s in q[1:]:
b+=int(s)
print(b)
b=0
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