Vidyalelo
Python · Q25

MCQs for Python Dictionaries: Exam

Programming · Python · question 25

Q25

What is the output of the following code:my_dict = 'a': 1, 'b': 2, 'c': 3my_dict.values()print(my_dict)

A.
{'a': 1, 'b': 2, 'c': 3}
Answer
B.
[1, 2, 3]
C.
{1, 2, 3}
D.
{'values': [1, 2, 3]}

Answer: Option A

Solution

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