method to find index of element in second list code example Example: get index of list python list.index(element)