human
Write a function to find squares of individual elements in a list. Here is a solution in Python:
=====
Give me a Python code to find squares of individual elements in a list?
assistant
#Here is Python code to find squares of individual elements in a list.
 def square_nums(nums):
 square_nums = list(map(lambda x: x ** 2, nums))
 return square_nums