import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * #The inputs to this node will be stored as a list in the IN variables. size = IN[0] pairs =[] ids = [] #Assign your output to the OUT variable. Result = [] for i in range(0, len(IN[0])): Xcurrent = size[i] for k in range(0, len(IN[0])): #except i if size[k] > Xcurrent : current = size[i] pairs.append( size[i] ) OUT = pairs