Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if value exists in any key

>>> d = {'1': 'one', '3': 'three', '2': 'two', '5': 'five', '4': 'four'}
>>> 'one' in d.values()
True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #exists #key
ADD COMMENT
Topic
Name
3+1 =