search and get value from list python code example Example: python find item in list >>> ["foo", "bar", "baz"].index("bar") 1