

McqMate
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. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet