What will be the output of the following Python code?
>>> a={1,2,3}
>>> b=frozenset([3,4,5])
>>> a-b
>>> a={1,2,3}
>>> b=frozenset([3,4,5])
>>> a-bA. {1,2}
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

Join The Discussion