Use comprehensions to create data structures in a concise way.
Source Code
# List comprehension
squares = [x**2 for x in range(10)]
# Set comprehension
unique_squares = {x**2 for x in [-5, -4, -3, 3, 4, 5]}
# Dict comprehension
square_dict = {x: x**2 for x in range(5)}