spock
11/19/2017 - 11:44 PM

Finding the index of an item given a list containing it in Python

>>> ["foo", "bar", "baz"].index("bar")
1