Commit ef1e8495 by BellCodeEditor

save project

parent a148f56e
Showing with 10 additions and 1 deletions
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as s:
a=s.readlines()
for i in a:
o=0
ni=i.split()
print(ni[1:])
q=ni[1:]
p=0
for z in q:
u=int(z)
p+=u
o+=p
print(o)
\ 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