Vidyalelo
Python · Q69

Python Sets MCQs: Exam

Programming · Python · question 69

Q69

What will be the output of the following Python code? >>> a=5,6,7,8 >>> b=7,8,10,11 >>> a^b

A.
{5,6,7,8,10,11}
B.
{7,8}
C.
Error as unsupported operand type of set data type
D.
{5,6,10,11}
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board