I have an output in the following format:
report = {frozenset({'banana', 'carrot'}): 3,
          frozenset({'apple'}): 3,
          frozenset({'carrot'}): 4,
          frozenset({'apple', 'carrot'}): 2,
          frozenset({'banana'}): 4}
I would like to convert it to the following format:
banana carrot, 3
apple, 3
carrot, 4
apple carrot, 2
banana, 4
I have tried:
for i in report:
   print i
Which returns:
frozenset(['carrot', 'banana'])
frozenset(['apple'])
frozenset(['carrot', 'apple'])
frozenset(['carrot'])
frozenset(['banana'])
Any help would be appreciated.
 
     
     
     
     
     
    