Examveda

What will be the output of the following Python code snippet?
print('The sum of {0} and {1} is {2}'.format(2, 10, 12))

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


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python