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