Examveda

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

A. The sum of 2 and 10 is 12

B. The sum of 10 and a is 14

C. The sum of 10 and a is c

D. Error

Answer: Option B


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python