how to for loop on a array of objetcs code example
Example: for loop with index python3
colors = ["red", "green", "blue", "purple"]
for i in range(len(colors)):
print(colors[i])
colors = ["red", "green", "blue", "purple"]
for i in range(len(colors)):
print(colors[i])