Please Help to get the List sort like attched pic

Hi @MOJO,
Welcome to the Dynamo community.
Try this


or


List.Transpose([y[0..List.Count(y)-2],y[1..List.Count(y)-1]]);

2 Likes

Food for thoughts:

your_list = IN[0]

output = []
for index, e in enumerate(your_list):    
    if index - 1 >= 0:
        output.append([your_list[index-1], e])
OUT = output

Capture

3 Likes

sublists

7 Likes

Thanks For your Help

Thank you @AmolShah @3Pinter