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