Use map : map « Buildin Function « Python






Use map

Use map

print pow(3, 4)
print map(pow, [1, 2, 3], [2, 3, 4])       

           
       








Related examples in the same category

1.Do a map on list Do a map on list
2.Map: lambda function insideMap: lambda function inside
3.A sentence is split up into a list of wordsA sentence is split up into a list of words
4.Functional Programming Tools: mapFunctional Programming Tools: map
5.Functional Programming Tools: map: More than one sequence may be passedFunctional Programming Tools: map: More than one sequence may be passed