Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pass multiple arguments to map function python

from functools import partial

def sum_func(a,b):
  return a+b

func = partial(some_func,b=10)

my_list = map(func, iterable_list)
 
PREVIOUS NEXT
Tagged: #pass #multiple #arguments #map #function #python
ADD COMMENT
Topic
Name
8+7 =