Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

map in python

items = [1, 2, 3, 4, 5]
squared = list(map(lambda x: x**2, items))
Source by book.pythontips.com #
 
PREVIOUS NEXT
Tagged: #map #python
ADD COMMENT
Topic
Name
8+2 =