find index of list by value code example
Example 1: python find index by value
>>> ["foo", "bar", "baz"].index("bar")
1
Example 2: python list find index of item
>>> ["foo", "bar", "baz"].index("bar")
1
>>> ["foo", "bar", "baz"].index("bar")
1
>>> ["foo", "bar", "baz"].index("bar")
1