how to reference the index of a list code example Example: get index of list python list.index(element)