Report Bug
Qus : Which of the following statements create a dictionary?
Qusनिम्नलिखित में से कौन सा स्टेट्मेंट एक ड़िक्शनरी बनाता है?

A. d = {}
B. d = {“john”:40, “peter”:45}
C. d = {40:”john”, 45:”peter”}
D. All of the mentioned


Solution
D. All of the mentioned



Explanation
Dictionaries are created by specifying keys and values.



Report Bug