Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

filter list dict

fl = list(filter(lambda x: x['first'] == 'Christian', dictlist))

# you can't use `.property` because this is a dictionary, not a object
fl[0]['last']
# returns Doppler
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #list #dict
ADD COMMENT
Topic
Name
5+6 =