Open In App

Python-Quizzes | Python Dictionary Quiz | Question 9

Question 9:Find the output of the following program:




a = {'geeks' : 1, 'gfg' : 2
b = {'geeks' : 2, 'gfg' : 1
print (a == b) 

(A) True

(B) False
(C) Error
(D) None

Answer: (B)
Explanation: If two dictionary are the same it returns true, otherwise it returns false.
Quiz of this Question

Article Tags :