I am trying to find all the indices that have the same values in a list. but in my list, there are lists inside the list and I don't know how to do it I found how to do that for a normal list:
list=[2,5,9,1,3,1]
list.index(1)
it will print the indices of value
1: [3,5]
but for this list:
list=[1, [2,3,17] , 3 , [0,1,2,7,3] , 2 ]
for the value 2
it will need to print: [[1, 0], [3, 2], [4]]
but I don't know how to do that for this kind of list.