map(function, sequence) calls function(item) for each of the sequence's items and returns a list of the return values : Map : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Map »

 

map(function, sequence) calls function(item) for each of the sequence's items and returns a list of the return values


def cube(x)return x*x*x
print map(cube, range(111))



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Map