Vidyalelo
Python · Q58

Python Sets MCQs: Exam

Programming · Python · question 58

Q58

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})
Answer
C.
Error, not possible to convert set into frozenset
D.
Syntax error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board