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
#print
for i in a:
result=i.split()
print(resul[1:])
\ No newline at end of file
sum=0
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