Commit 7f13a7f2 by BellCodeEditor

save project

parent 39c035e4
Showing with 8 additions and 4 deletions
with open(r'c:\Users\003\Documents\lesson13-3\sales_list.txt','r',encoding='utf-8')as aa:
bb=aa.readlines()
bb.split(bb='')
for i in bb:
print(i[0])
print(i[1:])
\ No newline at end of file
print(i)
data=i.split(i='')
s=0
for sales in data[1:]
s=s+int(sales)
r=data[0]+str(s)
print(r)
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