You have a list and you want it written to a file with values separated with double colons?
Use str.join():
About the 'product'____'price'____'quantity' formatting... See this.
Use str.join():
'::'.join(iterable)
About the 'product'____'price'____'quantity' formatting... See this.