Commit c8cc0872 by BellCodeEditor

save project

parent 19a8de6c
Showing with 3 additions and 4 deletions
...@@ -6,7 +6,6 @@ with open(r'c:\Users\maku\Documents\lesson13-1\sales_list.txt','r',encoding='utf ...@@ -6,7 +6,6 @@ with open(r'c:\Users\maku\Documents\lesson13-1\sales_list.txt','r',encoding='utf
sum=0 sum=0
for z in data[1:]: for z in data[1:]:
sum+=int(z) sum+=int(z)
x.append(data[0] + str(sum)) x.append(data[0] + str(sum))
with open(r'c:\Users\maku\Documents\lesson13-1\sales_list.txt','w',encoding='utf-8') as file: with open(r'c:\Users\maku\Documents\lesson13-1\sales_list.txt','w',encoding='utf-8') as file:
file.writelines() file.writelines(x)
print(new) \ 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