python check if false in dict

Solutions on MaxInterview for python check if false in dict by the best coders in the world

showing results for - "python check if false in dict"
Emma
14 Oct 2018
1a_dictionary = {"a": 1, "b": 2}
2contains_1 = 1 in a_dictionary.values()
3print(contains_1)