Source Code:
(back to article)
nums = [1,2,3,4,5] quadrierte_numms = map(lambda x: x**2, nums) print(list(quadrierte_numms)) # gibt [1, 4, 9, 16, 25] aus
Result:
Report an issue