Commit 9fa926f4 by BellCodeEditor

auto save

parent 113b232c
Showing with 11 additions and 0 deletions
with open (r'c:\Users\my\Desktop\sales_list.txt','r',encoding='utf-8')as file:
a=file.readlines()
# print(a)
for i in a:
d=i.split()
# print(d[1:])
sum=0
for s in d[1: ]:
sum=int(s)+sum
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