Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if false in dict

a_dictionary = {"a": 1, "b": 2}
contains_1 = 1 in a_dictionary.values()
print(contains_1)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #python #check #false #dict
ADD COMMENT
Topic
Name
1+5 =