Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python for loop with index

colors = ["red", "green", "blue", "purple"]
for i in range(len(colors)):
    print(colors[i])
Source by treyhunner.com #
 
PREVIOUS NEXT
Tagged: #python #loop #index
ADD COMMENT
Topic
Name
2+3 =