Are you sure?
Do you want to delete “For Loop Example 4” permanently? You will not be able to undo this action.
Rectangle(color="pink")
# Set up lists
strings = ["lollipop", "unicorn", "rainbow"]
y_positions = [30, 50, 70]
loopList = range(len(strings)) # Explore exactly what is happening here!
# Run animation
for i in loopList:
with animation(duration=1):
Text(strings[i], x=50, y=y_positions[i])