Write a Python function that takes a list of numbers and prints out a list of their squares.
[1, 2, 3]
def squares(arr):
  res = []
  for i in arr:
    res.append(i**2)
  return res

arr = [1, 2, 3]
res = squares(arr)
print(res)