adplus-dvertising
frame-decoration

Question

What is the output of the following?
d = {0, 1, 2}
for x in d:
    print(d.add(x))

a.

0 1 2

b.

0 1 2 0 1 2 0 1 2 …

c.

None None None

d.

None of the mentioned

Posted under Python

Answer: (c).None None None

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs