Commit 87f298fb by BellCodeEditor

auto save

parent 85867e1d
Showing with 8 additions and 1 deletions
with open(r"c:\Users\86186\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file10: with open(r"c:\Users\86186\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file10:
a=file10.readlines() a=file10.readlines()
print(a) #print(a)
sum = 0
for content in a:
message = content.split()
#print(message[1:])
for i in message[1:]:
sum+=int(i)
print(sum)
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