Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for loop with index python3

colors = ["red", "green", "blue", "purple"]

for i in range(len(colors)):
    print(colors[i])
Source by treyhunner.com #
 
PREVIOUS NEXT
Tagged: #loop #index
ADD COMMENT
Topic
Name
8+2 =