Report Bug

QusIf b is a dictionary, what does any(b) do? Qusयदि b एक डिक्शनरी है, तो कोई भी (b) क्या करता है?


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


Solution
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.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad