Vidyalelo
Python · Q81

Python Sets MCQs: Exam

Programming · Python · question 81

Q81

What will be the output of the following Python code? >>> a=4,5,6 >>> b=2,8,6 >>> a-b

A.
{4,5}
Answer
B.
{6}
C.
Error as unsupported operand type for set data type
D.
Error as the duplicate item 6 is present in both sets

Answer: Option A

Solution

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