Examveda

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'}

D. {'a', 'b', 'c', ['p', 'q'], 'san}

Answer: Option C


This Question Belongs to Python Program >> Introduction To Python

Join The Discussion

Related Questions on Introduction to Python