Commit 7c4ebd69 by BellCodeEditor

auto save

parent 45d18cdb
Showing with 9 additions and 2 deletions
with open(r'c:\Users\maku\Desktop\sales_list.txt','r',encoding='utf-8') as a:
s=a.readlines()
for i in s:
print(i)
\ No newline at end of file
#print(i)
d=i.split()
#f=(d[1:])
sum=0
for o in d[1:]:
sum=sum+int(o)
print(sum)
\ No newline at end of file
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