I have this old random list:
old_list = [[(0, 1), (0, 2)], [(8, 4), (3, 7)]]
And I want to convert the tuples to lists like this :
>>> new_list = [[[0, 1], [0, 2]], [[8, 4], [3, 7]]]
I tried the below with a list comprehension, but apparently, it is wrong:
new_list = [list (y for y in x) for x in old_list]