Commit a8b46c74 by BellCodeEditor

save project

parent 346bdd6c
Showing with 5 additions and 2 deletions
......@@ -2,4 +2,7 @@ with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",enco
a=file.readlines()
for i in a:
z=i.split()
print(z[1:])
\ No newline at end of file
for x in z:
s=s+int(x)
o=z[0]+str(s)
print(o)
\ 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