Commit 5cef54fa by BellCodeEditor

save project

parent 32b952c7
Showing with 7 additions and 3 deletions
...@@ -3,5 +3,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco ...@@ -3,5 +3,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
#print(a) #print(a)
for i in a: for i in a:
qwe=i.split() qwe=i.split()
print(qwe[1:]) #print(qwe[1:])
a=0
\ No newline at end of file for e in qwe[1:]:
a=a+int(e)
ad=qwe[0]+str(a)
print(ad)
\ 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