Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What is the output of the following code?

    a,b=6,7
     a,b=b,a
     a,b
  2. A.
    (6,7)
    B.
    Invalid syntax
    C.
    (7,6)
    D.
    Nothing is printed

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The above piece of code illustrates the unpacking of variables.


Be The First To Comment