Nguyễn Đức Thành
New member
What will be the output of the following Python code?
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})
Code:
>>> a={1,2,3}
>>> b=frozenset([3,4,5])
>>> a-b
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})