Commit e62e4b0c by BellCodeEditor

save project

parent c5d9bd7a
Showing with 1 additions and 2 deletions
with open(r'c:\Users\mk11\Documents\lesson13-4\sales_list.txt','r', with open(r'c:\Users\mk11\Documents\lesson13-4\sales_list.txt','r',
encoding='utf-8',) as file1: encoding='utf-8',) as file1:
data = file1.readlines() data = file1.readlines()
sum = 0 finfor i in data:
for i in data:
data=i.split() data=i.split()
for salse in data[1:]: for salse in data[1:]:
sum+=int(salse) sum+=int(salse)
......
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