Home » Programming Language (coding) » Python MCQ » Study the following program: d = {0: ‘a’, 1: ‘b’, 2: ‘c’} for i in d: print(i)

Study the following program: d = {0: ‘a’, 1: ‘b’, 2: ‘c’} for i in d: print(i)

Study the following program:

d = {0: 'a', 1: 'b', 2: 'c'}
for i in d:
    print(i) 

A. a b c
B. 0 1 2
C. 0 a  1 b  2 c
D. None of these above

Correct Answer: Option B. 0 1 2 

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
4 ⁄ 1 =