Commit 5f27c3ba by BellCodeEditor

save project

parent 6b6b2eb9
Showing with 7 additions and 2 deletions
......@@ -3,4 +3,9 @@ with open(r'c:\Users\Windows 7\Documents\lesson13-1\sales_list.txt','r',encoding
#print(b)
for i in b:
c=i.split()
print(c[1:])
\ No newline at end of file
#print(c[1:])
sum=0
for n in c[1:]:
sum=sum+int(n)
s=c[0]+str(sum)
print(s)
\ 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