find in array python using lambda code example
Example 1: find elements array lamda python
result = [filter(lambda x: (x % 2 == 0), [1, 2, 3])]
Example 2: python array find lambda
lst = [1,2,3,4]
filter(lambda x: x % 2 == 0, lst)
[x for x in lst if x %2 == 0]
#[2,4]