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 output print(f"index of {item} in the list : {index}")
Output