Answers for "how to check dictionary using if condition in python"

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

Code answers related to "how to check dictionary using if condition in python"

Python Answers by Framework

Browse Popular Code Answers by Language