Commit 83651081 by BellCodeEditor

save project

parent 35a60272
Showing with 3 additions and 2 deletions
......@@ -3,7 +3,8 @@ with open("sales_list.txt",'r',encoding='utf-8') as file:
for i in a:
i=i.split( )
sum=0
for sales in i[1:]
for sales in i[1:]:
sum=sum+int(sales)
print(sum)
result=i[0]+str(sum)
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