Commit 1da23a68 by BellCodeEditor

save project

parent ca7d0b0b
Showing with 3 additions and 1 deletions
......@@ -5,6 +5,7 @@ with open(b,"r",encoding = "utf-8") as file:
a = file.readlines()
#print(a)
final_sum=[]
for i in a:
data=i.split()
#print(data[0],data[1:])
......@@ -14,7 +15,8 @@ for i in a:
result=data[0]+str(sum)
print(result)
with open("c:\\Users\\EDZ\\Documents\\lesson13-1\\sales_list.txt","a",encoding = "utf-8") as file:
file.writelinee(final_sum)
......
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