python lists of lists search for an element in an index code example
Example: python search list of lists for value return index
[(i, colour.index(c))
for i, colour in enumerate(colours)
if c in colour]
[(i, colour.index(c))
for i, colour in enumerate(colours)
if c in colour]