Commit 9523abcf by BellCodeEditor

save project

parent 019d0c6c
Showing with 7 additions and 2 deletions
...@@ -3,4 +3,9 @@ with open(r'/Users/edz/Desktop/sales_list.txt','r',encoding='utf_8') as a: ...@@ -3,4 +3,9 @@ with open(r'/Users/edz/Desktop/sales_list.txt','r',encoding='utf_8') as a:
#print(b) #print(b)
for i in b: for i in b:
c=i.split() c=i.split()
print(c[1:]) #print(c[1:])
\ No newline at end of file d=0
for e in c[1:]:
d+=int(e)
f=c[0]+str(d)
print(f)
\ 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