Given multiple sequence arguments, map function sends items taken from sequences in parallel as distinct arguments to the function:
d=pow(3, 4) # 3**4 print( d ) d=list(map(pow, [1, 2, 3], [2, 3, 4])) # 1**2, 2**3, 3**4 print( d )
With multiple sequences, map expects an N-argument function for N sequences.
Here, the pow function takes two arguments on each call-one from each sequence passed to map.