Commit f566a3e6 by BellCodeEditor

save project

parent b7103374
Showing with 5 additions and 2 deletions
...@@ -4,4 +4,7 @@ with open (r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='u ...@@ -4,4 +4,7 @@ with open (r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='u
for i in a: for i in a:
result=i.split() result=i.split()
sum=0 sum=0
for sast in result[1:] for sale in result[1:]:
\ No newline at end of file sum=sum=int(sale)
count=result[0]+str(sum)
print(count)
\ 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