Commit 58b84e51 by BellCodeEditor

auto save

parent 56efac88
Showing with 3 additions and 1 deletions
......@@ -5,4 +5,6 @@ with open (r"C:\Users\win10\Documents\lesson13-1\sales_list.txt","r",encoding='U
p=i.split()
for o in p[1: ]:
u=u+int(o)
print(p[0]+str(u))
with open(r"C:\Users\win10\Documents\lesson13-1\sales_list.txt","w",encoding='UTF-8') as file:
file.write(p[0]+str(u)
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