List of Keys/index form list with the same values

Hi I trying to get the index of the x that will have the same value
But i get stuck i dont get how I am suppose to use the functions in loops.
please help
Index%20of%20same%20values%20in%20list

List.IndexOf node will work here.

1 Like

I think what you want is the groupbykey node. It will automatically group same numbers in different lists.

groupbykeyindice

1 Like

@johannaroenner if you want to stick to Python, here my solution

image

2 Likes