The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #899
print(any({"1": False, "2": False}))
When used with dictionaries, any() looks at the keys, not the values. (stackoverflow.com/questions/12376079/check-if-any-value-o...)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) June 25, 2021
print(any({"1": False, "2": False}))
False
True
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅