Skip to content
Related Articles

Related Articles

Python-Quizzes | Python Dictionary Quiz | Question 8
  • Last Updated : 17 Sep, 2020

Question 8:Find the output of the following program:




dict ={} 
print (all(dict)) 

(A) { }
(B) False
(C) True
(D) An exception is thrown


Answer: (C)

Explanation: The all() method returns:

  • True – If all elements in an iterable are true ot iterable is empty.
  • False – If any element in an iterable is false.


Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :