I have a python tuple with the following format:
({'day': '03/06', 'stock': 10}, {'day': '04/06', 'stock': 12}, {'day': '05/06', 'stock': 5})
I would like to get a comma separated string with each key pair:
days = '03/06, 04/06, 05/06'
stocks = '10, 12, 5'
I'm using a loop with range and len to extract the values, but I think it's not optimal.
I've tried this and this suggestion but I don't get the results I'm looking for. Is there a better way to get these values without a loop?
Thanks