Python-Quizzes | Python Dictionary Quiz | Question 9

Question 9:Find the output of the following program:

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


(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

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.