Vidyalelo
Python · Q27

Python Sets MCQs: Exam

Programming · Python · question 27

Q27

What will be the output of the following Python code? >>> a=1,2,3 >>> b=frozenset([3,4,5]) >>> a-b

A.
{1,2}
Answer
B.
Error as difference between a set and frozenset can't be found out
C.
Error as unsupported operand type for set data type
D.
frozenset({1,2})

Answer: Option A

Solution

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