Vidyalelo
Python · Q75

MCQs for Python Dictionaries: Exam

Programming · Python · question 75

Q75

What will be the output of the following Python code? >>> a='B':5,'A':9,'C':7 >>> sorted(a)

A.
['A','B','C']
Answer
B.
['B','C','A']
C.
[5,7,9]
D.
[9,5,7]

Answer: Option A

Solution

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