Commit b6b37f7f by BellCodeEditor

save project

parent b3a8f4f4
Showing with 8 additions and 2 deletions
......@@ -2,6 +2,12 @@ q=open('sales_list.txt','r',encoding='utf-8')
a=q.readlines()
for i in a:
d=i.split()
print(i)
print(d)
#print(d)
for i in a:
dadt=i.split()
s=0
for sales in dadt[1:]:
s=s+int(sales)
result=dadt[0]+str(s)
print(result)
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