Vidyalelo
Python · Q82

MCQs for Python Dictionaries: Exam

Programming · Python · question 82

Q82

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

A.
"john", 40, 45, and "peter"
B.
"john" and "peter"
Answer
C.
40 and 45
D.
d = (40:"john", 45:"peter")

Answer: Option B

Solution

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