Sail E0 Webinar
Question
What is the output of the following?print('The sum of {0} and {1} is {2}'.format(2, 10, 12))
Options:
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
Answer: Option A


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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers