Commit 5c45a18c by BellCodeEditor

save project

parent 64403139
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: with open(r'c:\Users\Thinkpad\Documents\lesson13-1\sales_list.txt ','r',encoding='utf-8')as file1:
a=file1.readlines() a=file1.readlines()
cunt=0
for i in a: for i in a:
b=i.split() b=i.split()
print(b[1:]) for j in b[1:]:
\ No newline at end of file cunt+=int(j)
print(cunt)
cunt=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