map in python2 code example
Example 1: map in python 3
map(function, iterable, ...)
Example 2: map python 3
#generate a list from map iterable with lambda expression
list( map(lambda x: x*2, numeros) )
map(function, iterable, ...)
#generate a list from map iterable with lambda expression
list( map(lambda x: x*2, numeros) )