Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

filter function using lambda in python

#filter function 

nums1 = [2,3,5,6,76,4,3,2]


bads = list(filter(lambda x: x>4, nums1))
print(bads)
 
PREVIOUS NEXT
Tagged: #filter #function #lambda #python
ADD COMMENT
Topic
Name
1+2 =