numbers = [1, 2, 3, 4, 5]
# Define a regular function
def square(x):
return x**2
# Use map() function with a lambda to apply the square function to each element in the list
squared_numbers = list(map(lambda x: x**2, numbers))
print(squared_numbers)