Answers for "python check if false in dict"

0

python check if false in dict

a_dictionary = {"a": 1, "b": 2}
contains_1 = 1 in a_dictionary.values()
print(contains_1)
Posted by: Guest on December-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language