Commit 9ee07596 by BellCodeEditor

save project

parent 7537423f
Showing with 5 additions and 4 deletions
with open(r'c:\Users\Administrator\Documents\lesson13_2\sales_list.txt','r',encoding='utf-8') as www:
a=www.readlines()
r=0
for i in a:
data=i.split()
#e=data[0]
r=0
e=data[0]
#d=data[1:]
for s in data[1:] :
print(s)
\ No newline at end of file
r=r+int(s)
u=e+str(r)
print(u)
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