Run
mylist = [21, 5, 8, 52, 21, 87, 52] item = 52 # Search for the item index = mylist.index(item) # Print output print(f"index of {item} in the list : {index}")
Output