Let's say I have two lists a = [1,2,3,4] b = [5,9,1,2]
and I want to get the indices of every element in list b when an element of list a is in there. In this example, the result should be a list c containing all indices in b c = [2,3] 1 in list a is on index 2 in b 2 in list a is on index 3 in b
Thanks in advance!!