Commit b24dd66d by BellCodeEditor

save project

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