Examveda

What will be the output of the following Python code?
'The {} side {1} {2}'.format('bright', 'of', 'life')

A. Error

B. 'The bright side of life'

C. 'The {bright} side {of} {life}'

D. No output

Answer: Option A


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators