numbers = [1,2,3,4,5,6,7,8,9] b = lambda a : a if (a%2) != 0 else pass #If I try something else instead of Pass or continue, it works print(list(map(b,numbers)))