Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What is the output of the following?

    print('The sum of {0} and {1} is {2}'.format(2, 10, 12))
  2. A.
    The sum of 2 and 10 is 12
    B.
    Error
    C.
    The sum of 0 and 1 is 2
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The arguments passed to the function format can be integers also.


Be The First To Comment