how to search a list in python and return 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]