Python найти индекс по значению
>>> ["foo", "bar", "baz"].index("bar")
1
Cook's Tree Boa
>>> ["foo", "bar", "baz"].index("bar")
1
# To return the index of the first occurence of element x in lst
ind = lst.index(x)