adplus-dvertising
frame-decoration

Question

What is the output of the code shown below?
for x in set('pqr'):
	print(x*2)

a.

pp
qq
rr

b.

pqr
pqr

c.

ppqqrr

d.

pqrpqr

Posted under Python

Answer: (a).pp
qq
rr

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 code shown below?