Return indices of all matches of x in table.
Like R’s match() but returns all positions, not just the first.
match()
x (sequence) – Values to look up.
table (sequence) – Reference table.
0-based indices into table.
list[int]
KeyError – If any element in x is not found in table.