Home » Programming Language (coding) » Python MCQs » Which of the following is not the correct syntax for creating a set?

Which of the following is not the correct syntax for creating a set?

Which of the following is not the correct syntax for creating a set?

A. set([[1,2],[3,4]])
B. set([1,2,2,3,4])
C. set((1,2,3,4))
D. {1,2,3,4}

Correct Answer: Option A. set([[1,2],[3,4]]) 

Take Part in Discussion:

Your email address will not be published.

Solve : *
19 − 6 =