Home / Python Tips Generated By ChatGPT / Map Function in Python Applies a function to all the items in an input list. Source Code numbers = [1, 2, 3, 4] squared = list(map(lambda x: x**2, numbers)) print(squared)