In [1]:
def f(x):
return x % 2
In [2]:
%%timeit
m = map(f, range(1000))
In [3]:
%%timeit
for m in map(f, range(1000)):
pass
In [4]:
%%timeit
for m in map(f, range(10000)):
pass