examples/lists/list_comprehension_simple.py
#!/usr/bin/env python
from __future__ import print_function

numbers  = [0, 1, 2, 3]

s = map(lambda n: n*n, numbers)
print(s)   # [0, 1, 4, 9]


squares = [n*n for n in numbers]
print(squares)   # [0, 1, 4, 9]