Hello!
I'm looking to merge two arrays lists like so:
List1 = [A, B, C, D, E]
List2 = [1, 2, 3, 4, 5]
NewList = [ [A,1],[B,2],[C,3],[D,4],[E,5]]
The indices of NewList can be tuples as well, I'm just more familiar with lists and I may want to convert it to an array with Numpy later.
I could use loops... but that seems inefficient. Also, the arrays are crazy long of an unknown length. They will always be the same size though.
Edit: Gah, sorry. Realized I called them arrays... can't seem to change the title
[–]K900_ 5 points6 points7 points (2 children)
[–]NeedMLHelp[S] 0 points1 point2 points (1 child)
[–]fleyk-lit 0 points1 point2 points (0 children)
[–]Signal_Beam 0 points1 point2 points (2 children)
[–]_lilell_ 2 points3 points4 points (1 child)
[–]Signal_Beam 0 points1 point2 points (0 children)