In [1]:
# multiply a list of integers by 2 and filter out odd number
In [7]:
integer_list = [1.5, 2, 3, 5, 9, 4, 6, 8, 11]
m = filter(lambda x: x % 2 == 0, map(lambda x : x*2, integer_list))
In [10]:
print integer_list
print m
print map(lambda x: x*2, integer_list)
In [12]:
# another approach
In [ ]:
map_list = []
filtered_list = []
for i in integer_list:
ma