Answers for "for loop of list with index"

5

python for loop array index

colors = ["red", "green", "blue", "purple"]
i = 0
while i < len(colors):
    print(colors[i])
    i += 1
Posted by: Guest on August-29-2020

Code answers related to "for loop of list with index"

Python Answers by Framework

Browse Popular Code Answers by Language