As a continuation for this question, how can I get the index of the sublist which contains the element?
So for example if I have:
a = [[1,2],[3,4],[5,6]]
any(2 in i for i in a)
....
How can I get 0 as a result (Because a[0] contains the number 2)?