Home » Programming Language (coding) » Python MCQs » 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 

Take Part in Discussion:

Your email address will not be published.

Solve : *
13 − 1 =