Q.

If b is a dictionary, what does any(b) do?

A. returns true if any key of the dictionary is true
B. returns false if dictionary is empty
C. returns true if all keys of the dictionary are true
D. method any() doesn’t exist for dictionary
Answer» A. returns true if any key of the dictionary is true
Explanation: method any() returns true if any key of the dictionary is true and false if the dictionary is empty.
729
0
Do you find this helpful?
6

Discussion

No comments yet