Open In App

Python-Quizzes | Python Dictionary Quiz | Question 9

Like Article
Like
Save
Share
Report

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


Last Updated : 17 Sep, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads