how to print index value of values in list code example Example: python list get index from value ["foo", "bar", "baz"].index("bar")