Discussion :: Python MCQs
-
The output of the code shown below is:s='{0}, {1}, and {2}'s.format('hello', 'good', 'morning')
Answer : Option C
Explanation :
Within the subject string, curly braces designate substitution targets and arguments to be inserted either by position or keyword. Hence the output of the code shown above:'hello, good,and morning'.
Be The First To Comment