Commit b9bc7366 by BellCodeEditor

save project

parent d9c7339a
Showing with 1 additions and 12 deletions
with open(r'C:\Users\EDY\Documents\lesson13-3\sales_list.txt','r',encoding='utf-8') as file: with open(r'C:\Users\EDY\Documents\lesson13-3\sales_list.txt','r',encoding='utf-8') as file:
a=file.readlines() a=file.readlines()
f=[]
for i in a: for i in a:
newa=i.split() newa=i.split()
d=0 print(newa[1:])
for g in newa[1:]:
d=d+int(g)
m=newa[0]+str(d)+'\n'
f.append()
with open(r'C:\Users\EDY\Documents\lesson13-3\sales_list.txt','r',encoding='utf-8') as file:
file.readlines(m)
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