# Using a lambda (inline anonymous function)
# Input list
lst = [1, 2, 3, 4]
# Use map() with a lambda function instead of defining square()
# lambda x: x * x is an anonymous function that returns x squared
result = list(map(lambda x: x * x, lst))
print(result) # Output: [1, 4, 9, 16]
'''
run:
[1, 4, 9, 16]
'''