Run
mylist = [21, 8, 67, 52, 8, 21, 87] item = 8 start=2 end=7 #search for the item index = mylist.index(item, start, end) print('The index of', item, 'in the list is:', index)
Output