IronPython Runtime.List

Hi All, I need to create a sub-list into a list using GH Python.

How can I output this list?

Try this

import ghpythonlib.treehelpers as th

box = []

for i in range(x):
    box.Add(range(i,i+7))

box = th.list_to_tree(box)
1 Like

Hi @seghierkhaled, Thanks for your suggestion. Any idea, why this error appears on my side?

Try append , i don’t know why didn’t work for you