Run
x = map(lambda n: n**2, [1, 2, 3, 4, 5, 6]) print(list(x))
Output