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

Read more of this post