Programming and Problem Solving through Python : Sequence data types in python

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

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




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.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad