Report Bug
Qus : Which 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.



Report Bug