Commit e500fd9b by BellCodeEditor

save project

parent 398cb7fd
Showing with 8 additions and 3 deletions
...@@ -3,5 +3,11 @@ with open(r'c:\Users\0000\Documents\lesson13-1\sales_list.txt','r',encoding='utf ...@@ -3,5 +3,11 @@ with open(r'c:\Users\0000\Documents\lesson13-1\sales_list.txt','r',encoding='utf
#print(b) #print(b)
for i in b: for i in b:
c=i.split() c=i.split()
print(c[0]) # print(c[0])
print(c[1:]) #print(c[1:])
\ No newline at end of file sb=0
for j in c[1:]:
sb=sb+int(j)
m=
print(sb)
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