Examveda

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

A. {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


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python