Vidyalelo
Python · Q58

MCQs for Python Dictionaries: Exam

Programming · Python · question 58

Q58

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

A.
Returns True if any key of the dictionary is true
Answer
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: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board