DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python find object with attribute in list
obj = next((obj for obj in list if obj['attribute'] == attribute), None)
PREVIOUS
NEXT
Tagged:
#python
#find
#object
#attribute
#list
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit