Commit a7418ec1 by BellCodeEditor

save project

parent 022783a6
Showing with 12 additions and 4 deletions
a=open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",encoding='utf-8') a=open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",encoding='utf-8')
b=a.readlines() b=a.readlines()
for i in range() for i in b:
print(b) w=i.split()
y=(w[1:])
\ No newline at end of file for s in y:
data=s.split()
j=0
for m in data[1:]:
j=j+int(m)
e=w[0]
t=y+str(j)
print(t)
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