how to check what index you are on in a list python code example
Example: how to find index of list of list in python
[(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]