Write a Python program that takes a list of integers and returns a list of their squares.
[1, 2, 3, 4]
def square_list(l):
 return [i**2 for i in l]

print(square_list([1, 2, 3, 4]))
# Output: [1, 4, 9, 16]