Report Bug

QusWhich of the following is not a declaration of the dictionary? Qusनिम्नलिखित में से कौन सा ड़िक्शनरी का डिक्लेरेशन नहीं है?


A. {1: ‘A’, 2: ‘B’}
B. dict([[1,”A”],[2,”B”]])
C. {1,”A”,2”B”}
D. { }


Solution
C. {1,”A”,2”B”}



Explanation
Option c is a set, not a dictionary.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad