I have a python list like this
colors = ['red', 'blue']
and a number, say j, which increases by 1 for each step of a loop. What I am looking for is a code which calls colors[0] when j = 0, colors[1] when j = 1 and than again colors[0] when j = 2 and so on as better illustrated in what follows
j = 0 -> color[0]
j = 1 -> color[1]
j = 2 -> color[0]
j = 3 -> color[1]
j = 4 -> color[0]
...
Could you provide me an advice, please?