Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

map in python

product = 1
list = [1, 2, 3, 4]
for num in list:
    product = product * num

# product = 24
Source by book.pythontips.com #
 
PREVIOUS NEXT
Tagged: #map #python
ADD COMMENT
Topic
Name
8+2 =