how to get the index list of a set value python code example Example: how to get the index list of a set value python >>> ["foo", "bar", "baz"].index("bar") 1