Report Bug

Qus

What is the output of the following code?

a = set('dcma')
b = set('mlpc')
print(a^b)
Qus

निम्नलिखित कोड का आउटपुट क्या है?

a = set('dcma')
b = set('mlpc')
print(a^b)


A. {‘d’, ‘c’, ‘m’, ‘l’, ‘p’, ‘c’}
B. {‘m’, ‘l’, ‘p’, ‘c’}
C. {‘d’, ‘c’, ‘m’, ‘a’}
D. None of These


Solution
D. None of These



Explanation
the output of the following code is : {'l', 'a', 'p', 'd'} so none of these option is correct
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad