get index of element in list python by value 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