I have arbitrary lists, for example, here are three lists:
a = [1,1,1,1] b = [2,2,2,2] c = [3,3,3,3]
And I want to transpose them together to get the output as follows:
f_out = [1,2,3] g_out = [1,2,3] ... n_out = [1,2,3]
As you can see, I just converted the βcolumnsβ to βrowsβ.
The problem is that the solution does not depend on the length of the lists.
For instance:
a = [1,1] b = [2] c = [3,3,3]
Paddy source share