DEV Community

Discussion on: What are lambda expressions in Python?

Collapse
 
vuurball profile image
vuurball

don't forget to pass the numbers to the map()

list(map(lambda number: number*number, numbers))

Collapse
 
codespent profile image
Patrick Hanford

Ah ha, good catch!