Home » Programming Language (coding) » Python MCQ » 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]]) 

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
32 ⁄ 8 =