Hi all…how to get index of two List in the picture?
Are they always at position 2 and 3?
What exactly are you wanting to do? You’re already getting the index of each item. Can you show us what your expected outcome would be?
OUT =  for i,x in enumerate(IN): allIndices = [j for j,y in enumerate(IN) if y == x] if allIndices: try: k = IN[:i].count(x) OUT.append(allIndices[k]) except: OUT.append(allIndices[-1]) else: OUT.append(-1)
Thank you for reply
I have a list 1 of equipments; List 2 is a list point of equipment; List 3 is a new list point.
I want sort list 1 equal list 3
@Eng.Minh Just swap the inputs on Python node.
Thannk you very much