first of all I am sorry if this have been answered elsewhere. But I have been trying to solve this issue where I want to get the index where n elements repeats it self. So for example if I wanted the index from a list containing bools where True
have repeated itself 3 times:
A = [False, False, True, True, True, False, True, True, True]
So in this example I would want the index 2.