Vidyalelo
Python · Q5

Python Sets MCQs: Exam

Programming · Python · question 5

Q5

What is the purpose of the set() constructor in Python?

A.
Creates a new set
Answer
B.
Converts a list to a set
C.
Converts a string to a set
D.
Creates a tuple

Answer: Option A

Solution

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