Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate through an array python

colors = ["red", "green", "blue", "purple"]
i = 0
while i < len(colors):
    print(colors[i])
    i += 1
Source by treyhunner.com #
 
PREVIOUS NEXT
Tagged: #iterate #array #python
ADD COMMENT
Topic
Name
8+6 =