#!/usr/bin/python
# -*- coding:utf-8 -*-  
#Filename: iterator.py

colors = [ 'red',  'green',  'blue',  'yellow' ]

for i in range(len(colors)):
    print (colors[i])

# >>> red
# green
# blue
# yellow

for color in colors:
    print(color)
