Python Python Sequences Sequence Iteration Iterating With For Loops

Haasini Beeravolu
Haasini Beeravolu
616 Points

How do I do this?

I do not really understand how to do this.

iterating_lists.py
rainbow = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']

1 Answer

Just use a for loop to print each element in the list.