adplus-dvertising
frame-decoration

Question

What is the output of the code shown below?
 '{0:.2f}'.format(1.234)

a.

‘1’

b.

‘1.234’

c.

‘1.23’

d.

‘1.2’

Posted under Python

Answer: (c).‘1.23’

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown below?