get item at certain index list code example
Example 1: get all index of item in list python
indices = [i for i, x in enumerate(my_list) if x == "whatever"]
Example 2: get index of item in list
list.index(element, start, end)
indices = [i for i, x in enumerate(my_list) if x == "whatever"]
list.index(element, start, end)