Report Bug
Qus :

What will be the output of the following Python code snippet?

d = {"john":40, "peter":45}
print(d["john"])

Qus

निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?

d = {"john":40, "peter":45}
print(d["john"])


A. 40
B. 45
C. “john”
D. “peter”


Solution
A. 40



Explanation
Execute in the shell to verify.



Report Bug