Commit f4119cdd by BellCodeEditor

save project

parent e6a009a2
Showing with 10 additions and 2 deletions
...@@ -3,4 +3,12 @@ with open(r'c:\Users\karlcarlo\Documents\lesson13-1\sales_list.txt ','r',encodin ...@@ -3,4 +3,12 @@ with open(r'c:\Users\karlcarlo\Documents\lesson13-1\sales_list.txt ','r',encodin
#print #print
for i in a: for i in a:
result=i.split() result=i.split()
print(resul[1:]) sum=0
\ No newline at end of file for sale in result[1:]:
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