Examveda

What will be the output of the following Python code?
>>> a={1:"A",2:"B",3:"C"}
>>> a.items()

A. Syntax error

B. dict_items([('A'), ('B'), ('C')])

C. dict_items([(1,2,3)])

D. dict_items([(1, 'A'), (2, 'B'), (3, 'C')])

Answer: Option D


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python