Dynamo Python loop takes last item

Hey
i can make me script get each element in list as output
why ?


@neonaj ,

what is the Purpose of that? finaly you can do something like transpose @L1

from itertools import zip_longest

list_of_lists = IN[0]

tranposed_tuples = zip_longest(*list_of_lists, fillvalue=None)
transposed_tuples_list = list(tranposed_tuples)

OUT = list(transposed_tuples_list)

KR

Andreas

Try changing line 50
from
OUT = (komponentrevit)

to
OUT = list