Mar-27-2017, 12:10 PM
just to mention that there is no need to explicitly convert the result to list
>>> def az(x): return x*2 >>> q = map(az, [2, 3, 4]) >>> q [4, 6, 8]