List of lists -- Extracting elements

Hi all,

I have a list of lists and I am trying to extract elements from it in a certain order. Can someone please help me do that? E.g.

list = [
[a, b, c, d],
[1, 2, 3, 4],
[i, ii, iii, iv]
]

I want my new list to look like this:

[a, 1, i], [b, 2, ii], [c, 3, iii], [d, 4, iv]

Something like the following?

a_list = [
    ['a', 'b', 'c', 'd'],
    [1, 2, 3, 4],
    ['i', 'ii', 'iii', 'iv'],
]

print(*map(list, zip(*a_list)), sep="\n")
['a', 1, 'i']
['b', 2, 'ii']
['c', 3, 'iii']
['d', 4, 'iv']
2 Likes