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