Can anyone please explain me why this is not working?

前端 未结 0 1055
我在风中等你
我在风中等你 2020-11-21 04:43
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)))         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题