Commit 4693fc24 by BellCodeEditor

save project

parent 1d1c49c0
Showing with 3 additions and 1 deletions
...@@ -8,7 +8,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco ...@@ -8,7 +8,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
sb=0 sb=0
for n in data[1:]: for n in data[1:]:
sb+=int(n) sb+=int(n)
print(sb) nb=data[0]+str(sb)
print(nb)
......
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