Consider a nested list:
d = [[1,2,3],[4,5,6]]
I want to zip
its elements for this result:
[[1,4],[2,5],[3,6]]
How to do that? An incorrect approach is
list(zip(d))
But that gives:
[([1, 2, 3],), ([4, 5, 6],)]
What is the correct way to do the zip
?