Commit e51a7d2d by BellCodeEditor

auto save

parent 517101d4
Showing with 10 additions and 2 deletions
with open(r'c:\Users\admin\Documents\lesson13-1\sales_list.txt',"r",encoding='utf-8') as sele:
e=sele.readlines()
for i in e:
k=i.split()
print(k[0])
print(k[1:])
#print(k[0])
#print(k[1:])
y=0
for j in k[1:]:
y=y+int(j)
#print(y)
print(k[0]+str(y))
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