Vidyalelo
Python · Q68

Formatting and Decorators

Programming · Python · question 68

Q68

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

A.
'1'
B.
'1.234'
C.
'1.23'
Answer
D.
'1.2'

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board