Examveda

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

A. ['A','B','C']

B. ['B','C','A']

C. [5,7,9]

D. [9,5,7]

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python