What will be the output of the following Python code?
a=set('abc')
b=set('def')
b.intersection_update(a)
a
b
a=set('abc')
b=set('def')
b.intersection_update(a)
a
bA. set()
(‘e’, ‘d’, ‘f’}
B. {}
{}
C. {‘b’, ‘c’, ‘a’}
set()
D. set()
set()
Answer: Option C

Join The Discussion