Suppose I have a list of five different colours, colour = ['red', 'blue', ...] etc. I then want to create a loop for making an arbitrary amount of circles defined by the tkinter modules. That would mean something like
def Circles():
y = 0
x = 0
while y <= 900 and x <= 900:
x = x + 100
y = y + 100
w.create_oval(x, y, 0, 0, fill='red')
How would I include a loop for that fill='red' part, where I instead want fill=colour[N], where N would change in a loop? So the first circle would be red, next blue, next green etc? I also know that these ones overlap and I will try to make them not overlap, but that's not the question here.
xandyare the same, use 1 variable and use aforloop:for x in range(0,1000,100):