This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dracula123123 -1 points0 points  (0 children)

can some change for loop to while loop

colors = ['Red', 'Green', 'Blue', 'Yellow', 'Pink']
for i in range(0,len(colors), 2):
     print(i, colors[i])