how to read through an array python code example
Example 1: iterate through an array python
colors = ["red", "green", "blue", "purple"]
i = 0
while i < len(colors):
print(colors[i])
i += 1
Example 2: for loop in python array
for x in range (1, 100, 1):
print(x)