Commit eca9c891 by BellCodeEditor

save project

parent 546c8f7f
Showing with 3 additions and 3 deletions
...@@ -10,6 +10,6 @@ for i in a: ...@@ -10,6 +10,6 @@ for i in a:
sum=sum+int(sales) sum=sum+int(sales)
result=data[0]+str(sum) result=data[0]+str(sum)
print(result) print(result)
we=append(result) new_result=append(result)
with open(r"C:\Users\ACER\Desktop\test.txt",'a',encoding='utf-8') as file1: with open(r"C:\Users\ACER\Desktop\test.txt",'a',encoding='utf-8') as file1:
file1.writelines(we) file1.writelines(new_result)
\ No newline at end of file \ 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