Commit 654eb89a by BellCodeEditor

save project

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