Commit b9266ca3 by BellCodeEditor

save project

parent 5a97bb7c
Showing with 1 additions and 2 deletions
......@@ -2,8 +2,8 @@ with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",enco
a=file.readlines()
for i in a:
z=i.split()
s=0
for x in z[1:]:
s=0
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