Question: what is the difference between lambda and list comprehension?
Answer: Actually, list comprehension is much clearer and faster than filter+lambda, but you can use whichever you find easier. ... x then the list comprehension runs in a separate function so it will also be accessing the value through the closure and this difference won't apply.