Python MCQ Number 01375

Python MCQ Set 1 1. What is the output of the following? print(”Hello {name1} and {name2}”.format(name1=’foo’, name2=’bin’)) a) Hello foo and bin b) Hello {name1} and {name2} c) Error d) Hello and AnswerAnswer: a [Reason:] The arguments are accessed by their names. 2. What is the output of the following? print(”Hello {0!r} and {0!s}”.format(’foo’, ‘bin’))…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership