Examveda

What will be the output of the following Python code?
'{0:.2f}'.format(1.234)

A. '1'

B. '1.234'

C. '1.23'

D. '1.2'

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators