Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python list of dictionaries search

next((item for item in dicts if item["name"] == "Pam"), None)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #list #dictionaries #search
ADD COMMENT
Topic
Name
2+2 =