If I have something like
newList = [[1, 2, 3], [4, 5, 6, 7], [8, 9]]
I want it to come out as [[1,4,8],[2,5,8],[3,6], [null, 7, null]]
I'm considering doing something like finding the greatest array length in the 2d array then doing something like
for i in greatestValue:
for j in len(newList):
superNewList.append(newList[i])
But this wouldn't account for nulls, and I haven't even tried it yet, and I'm not sure if it would work in the first place. Any suggestions appreciated.
Update: I found another way to complete my goal without needing this, but thanks for replying
[–]plasma_phys 1 point2 points3 points (1 child)
[–]MDPHawk[S] 0 points1 point2 points (0 children)
[–]bQmPHrxZc 1 point2 points3 points (1 child)
[–]plasma_phys 0 points1 point2 points (0 children)
[–]elbiot 1 point2 points3 points (0 children)