Vidyalelo
Python · Q67

MCQs for Python Dictionaries: Exam

Programming · Python · question 67

Q67

What will be the output of the following Python code snippet? d = "john":40, "peter":45 d["john"]

A.
40
Answer
B.
45
C.
"john"
D.
"peter"

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board