Commit 963b9554 by BellCodeEditor

save project

parent 394ae224
Showing with 8 additions and 1 deletions
......@@ -2,5 +2,11 @@ a=open(r'c:\Users\oo\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
c=a.readlines()
for i in c:
b=i.split()
print(b[1:])
#print(b[1:])
sum=0
for sales in b[1:]:
sum=sum+int(sales)
name=b[0]+str(sum)
print(name)
a.colose()
\ 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