Run
mylist = [21, 5, 8, 52, 21, 87, 52] item = 67 if item in mylist: index = mylist.index(item) print(f"index of {item} in the list is : {index}") else: print("item not present in list")
Output