Commit 5cb921e2 by BellCodeEditor

save project

parent 3f4e120c
Showing with 3 additions and 4 deletions
......@@ -2,12 +2,11 @@
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()
q=ni[1:]
p=0
for z in q:
u=int(z)
p+=u
o+=p
print(o)
\ No newline at end of file
f=(ni[0],p)
print(f)
\ 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