Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Can. Lambda is a regular function with no side effects. In this case, you just need to use the correct logical operator:list(filter(lambda x: x != 5 and x != 2, nums))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question