I have a list of lists:
[[10, 9, 8], [8, 7], [1, 2, 3]]
The sublists are not necessarily of the same size. I need to find a number that occurs in two seperate lists, and return the list index and the numbers index in those lists.
in this case it would be 8, list 0, list 1, list 0 idx 2, list 1 idx 0.
Right now I am doing it with a bunch of for loops, but this is ridiculously slow... are there are faster more pythonic way of achieving this?