Home » Programming Language (coding) » Python MCQs » Study the following program:

Study the following program:

Study the following program:

d = {0, 1, 2}  
for x in d:  
    print(x)  

A. {0, 1, 2} {0, 1, 2} {0, 1, 2}
B. 0 1 2
C. Syntax_Error
D. None of these above

Answer: B. 0 1 2

Take Part in Discussion:

Your email address will not be published.

Solve : *
7 + 6 =