There is a row of numbers in the notebook. Write squares(nums) to return a new list of each number squared, in the same order. Try it in one line: a list comprehension.
squares([1, 2, 3])→[1, 4, 9]squares([])→[]def squares(nums):
# your code here: a list comprehension that turns each n into n * n
return []
Run tries the examples. When they look right, Submit.