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

Leave a Reply

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

Solve : *
24 ⁄ 12 =