"map(None, list1, list2)" is a convenient way of turning a pair of lists into a list of pairs : Map : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Map »

 

"map(None, list1, list2)" is a convenient way of turning a pair of lists into a list of pairs


seq = range(8)
def square(x)return x*x
print map(None, seq, map(square, seq))



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Function
» Map