I have this:
[[(1, 'a')], [(2, 'b'), (2, 'c')], [(3, 'd'), (3, 'e')]]
I want to make an input to search for a/b/c/d/e and output the index of this letter.
E.g when searching a -> index=0, b and c -> index=1, d and e -> index=2
How is this possible on Python 3.x
You will have to iterate over the list first, then for each list obtained, iterate over it to get tuples.