Commit a43cdeba by BellCodeEditor

save project

parent fcfd0160
Showing with 6 additions and 2 deletions
with open(r'c:\Users\MAKCOO\Desktop\sales_list.txt','r',encoding ='utf-8') as sales_list.txt: with open(r'c:\Users\MAKCOO\Desktop\sales_list.txt','r',encoding ='utf-8') as file:
a=file.read()
print(a)
\ No newline at end of file
...@@ -8,5 +8,5 @@ for i in a: ...@@ -8,5 +8,5 @@ for i in a:
sum=sum+int(sales) sum=sum+int(sales)
result=data[0]+str(sum)+'\n' result=data[0]+str(sum)+'\n'
final_sum.append(result) final_sum.append(result)
with open(r'C:\Users\MAKCOO\Desktop\hhhhhhh.txt','a',encoding ='utf-8') as file: with open(r'C:\Users\MAKCOO\Desktop\doge.txt','a',encoding ='utf-8') as file:
file.writelines(final_sum) file.writelines(final_sum)
\ 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