If you have a list with multiple items that are the same, like here there are three 1s:
new_list = [0, 1, 3, 5, 8, 1, 4, 1]
is there a simple way to return the indexes of all the 1s? new_list.index(1) seems to return only the index of the first 1.
Replace this line with your code.