find the index of a value python code example
Example 1: python find index by value
>>> ["foo", "bar", "baz"].index("bar")
1
Example 2: find index of elem list python
First index of element "Ok" in the list : 1
>>> ["foo", "bar", "baz"].index("bar")
1
First index of element "Ok" in the list : 1