Vidyalelo
Python · Q63

Python Introduction and basic

Programming · Python · question 63

Q63

What will be the output of the following Python program? z=set('abc') z.add('san') z.update(set(['p', 'q'])) z

A.
{'a', 'c', 'c', 'p', 'q', 's', 'a', 'n'}
B.
{'abc', 'p', 'q', 'san'}
C.
{'a', 'b', 'c', 'p', 'q', 'san'}
Answer
D.
{'a', 'b', 'c', ['p', 'q'], 'san}

Answer: Option C

Solution

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