In a list, is there a way to access the index of the second value using index() method, in the case of the second value is a duplicate of the first value?
num_list = [3,3,6,9]
index1 = num_list.index(num_list[0])
print(index1) #prints "0" as expected
index2 = num_list.index(num_list[1])
print(index2) #prints "0" while the expected output is "1"