Commit e191aca0 by BellCodeEditor

save project

parent 0506edf3
Showing with 11 additions and 3 deletions
with open(r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt^C','r'encoding='utf-8')as filel: with open(r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as filel:
a = filel.readlines() a = filel.readlines()
#print(a) #print(a)
for i in a: for i in a:
print(i) #print(i)
\ No newline at end of file b=i.splint()
#print(b[0])
#pint(b[1:0])
sun = 0
for sales in b[1:]
sun = sun + int(sales)
sun=b[0] + int(sun)
print(sun)
\ No newline at end of file
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