Commit cb70e1d1 by BellCodeEditor

save project

parent 77adebec
Showing with 8 additions and 2 deletions
......@@ -3,4 +3,10 @@ with open(r'C:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
#print(a)
for i in a:
c=i.split()
print(c[0])
\ No newline at end of file
#print(c[0])
d=0
for b in c[1:]:
d+=int(b)
e=e+int(b)
print(c[0]+str(e))
\ 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