In [1]:
def find_index(x):
for x,y in enumerate(list):
if y == x:
return x
In [2]:
list= ['mercy', 'simon','isaac', 'alys']
In [3]:
find_index('mercy')
In [ ]: