Examveda
Examveda

What will be the output of the following Python code?
a=set('abc')
b=set('def')
b.intersection_update(a)
a
b

A. set()
(‘e’, ‘d’, ‘f’}

B. {}
{}

C. {‘b’, ‘c’, ‘a’}
set()

D. set()
set()

Answer: Option C


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python