adplus-dvertising
frame-decoration

Question

What is the syntax of the following piece of 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

Posted under Python

Answer: (b).frozenset({5,6,7})

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the syntax of the following piece of code?