Examveda

What is the syntax of the following Python code?
>>> a=frozenset(set([5,6,7]))
>>> a

A. {5,6,7}

B. frozenset({5,6,7})

C. Error, not possible to convert set into frozenset

D. Syntax error

Answer: Option B


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python