List Comprehensions. This code will create a new list called squares that contains the square of each number in the original list. List comprehensions are often faster than loops because they use a more optimized internal mechanism for iterating over the collection.