What will be the output of the following Python code?
x=set('abcde')
y=set('xyzbd')
x.difference_update(y)
x
y
x=set('abcde')
y=set('xyzbd')
x.difference_update(y)
x
yA. {‘a’, ‘b’, ‘c’, ‘d’, ‘e’}
{‘x’, ‘y’, ‘z’}
B. {‘a’, ‘c’, ‘e’}
{‘x’, ‘y’, ‘z’, ‘b’, ‘d’}
C. {‘b’, ‘d’}
{‘b’, ‘d’}
D. {‘a’, ‘c’, ‘e’}
{‘x’, ‘y’, ‘z’}
Answer: Option B

Join The Discussion