Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. Which of the following statements is used to create an empty set?
  2. A.
    { }
    B.
    set()
    C.
    [ ].
    D.
    ( )

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    { } creates a dictionary not a set. Only set() creates an empty set.


Be The First To Comment