Vidyalelo
Python · Q84

Python Sets MCQs: Exam

Programming · Python · question 84

Q84

What will be the output of the following Python code snippet? for x in set('pqr'): print(x*2)

A.
pp
qq
rr
Answer
B.
pqr
pqr
C.
ppqqrr
D.
pqrpqr

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board