print [x ** 2 for x in range(4)] # List comprehension: build a list print (x ** 2 for x in range(4)) # Generator expression: make an iterable