Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What is the output of the following?

    print("Hello {1} and {0}".format('bin', 'foo'))
  2. A.
    Hello foo and bin
    B.
    Hello bin and foo
    C.
    Error
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The numbers 0 and 1 represent the position at which the strings are present.


Be The First To Comment