Mega Code Archive

 
Categories / Python Tutorial / Buildin Function
 

Mapping Functions over Sequences

counters = [1, 2, 3, 4]  map((lambda x: x + 3), counters)        # Function expression