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