List Comprehensions

A concise way to create lists in Python.

squares = [x**2 for x in range(10)]

See also: Python