here i need to merge list of lists with a boolean item.
Input like this
list = [[[3, [1, 2]]], [[1, [2, 3]]], False, [[4, [4, 5]]]]
And excepted result is
[[3, [1, 2]], [1, [2, 3]], False, [4, [4, 5]]]
I tried this
res = []
for x in list:
res.append(x)
print res
Thanks in advance...