how to just get index from for loop in python 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])