Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What is the output of the line of code shown below, if s1= {1, 2, 3}?

    s1.issubset(s1)
  2. A.
    True
    B.
    Error
    C.
    No output
    D.
    False

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Every set is a subset of itself and hence the output of this line of code is true.


Be The First To Comment