adplus-dvertising
frame-decoration

Question

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}

Posted under Python

Answer: (a).set([[1,2],[3,4]])

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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