python get items from list by index code example
Example 1: python list get index from value
["foo", "bar", "baz"].index("bar")
Example 2: get index of item in list
list.index(element, start, end)
["foo", "bar", "baz"].index("bar")
list.index(element, start, end)