List Comprehensions

List comprehensions provide an alternative syntax to creating lists and other sequential data types.

a_list = [ n for n in range(1, 10) ]

References