examples/lists/loop.py
from __future__ import print_function

letters = ['abc', 'def', 'ghi', 42]
for var in letters:
    print(var)
examples/lists/loop_index.py
from __future__ import print_function

letters = ['abc', 'def', 'ghi', 42]
for i in range(len(letters)):
    print(i, letters[i])

# 0 abc
# 1 def
# 2 ghi
# 3 42