Commit 8bcda2d7 by BellCodeEditor

save project

parent b456538d
Showing with 5 additions and 3 deletions
......@@ -7,5 +7,7 @@ for i in data:
sum=0
for sales in money:
sum=sum+int(sales)
result=name+str(sum)
print(result)
\ No newline at end of file
result=name+str(sum)+'\n'
final.append(result)
with open(r'c:\Users\Administrator\Documents\lesson13-1\new_sales_list.txt','w',encoding='utf-8')as a:
file.writelines(final)
\ 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