Python Foundation | Loops Question 12

Last Updated :
Discuss
Comments

What will be the output of the following code?

d = {0, 1, 2}

for x in d:

    print(x)

0 1 2

{ 0, 1, 2} { 0, 1, 2}{ 0, 1, 2}

Error

No output

Share your thoughts in the comments