python get index of list where value is code example Example: get index of list python list.index(element)