I have a simple array like this
x=[0,0,0,1,1,1,2]
I would like to know, the number 1 is in what index.
So far, when I am doing this:
a = ["a", "b", "b", "d", "e"]
print(a.index("b"))
from the code above the result is 1, is there a way to get the result that 1 is in index 1 and 2