I have the following python program
ml = [x for x in range(1,4)]
f = lambda x : x*2
print(f(ml))
nl = map(f,ml)
print(nl)
The output is given below.
[1, 2, 3, 1, 2, 3]
<map object at 0x1005fada0>
map()
is returning a map object
is it possible to turn that into a list?