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