Commit 0ac35733 by BellCodeEditor

save project

parent 8d94f0ad
Showing with 7 additions and 2 deletions
......@@ -2,5 +2,9 @@ with open(r"c:\Users\xmbc\Documents\lesson13-1\sales_list.txt","r",encoding='utf
w=q.readlines()
for i in w:
e=i.split()
print(e[0])
print(e[1:])
#print(e[0])
#print(e[1:])
z=0
for a in e[1:]:
z+=int(a)
print(e[0]+str(z))
\ 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