Q. What will be the output of the following Python program?
Code:
z=set('abc')
z.add('san')
z.update(set(['p', 'q']))
z
β
Correct Answer: (C)
{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}