I have a list like as follows
list1 = [['abc',{2:1,3:4,5:6}],['xyz',{4:0,9:5,7:8}],.......]]
I want write the list in a o/p file in the following format:
'abc' 2:1 3:4 5:6
'xyz' 4:0 9:5 7:8
I tried different ways, but not able to get it in the above format.Let me also mention that len(list1) = 30000.Please suggest me an optimized way