What will be the output of the following Python code?
d = {0, 1, 2}
for x in d:
print(d.add(x))
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
Answer: Option C

Join The Discussion