I am trying to expand the following list
[(1, [('a', '12'), ('b', '64'), ('c', '36'), ('d', '48')]), (2, [('a', '13'), ('b', '26'), ('c', '39'), ('d', '52')])]
to
[(1,a,12),(1,b,24),(1,c,36),(1,d,48),(2,a,13),(2,b,26),(2,c,39),(2,d,52)]
I used zip(itertools.cycle()) in python 3, but instead get a zip object reference. Is there any other way I can do it? This worked for python 2