adplus-dvertising
frame-decoration

Question

The output of the code shown below is:
'{0:f}, {1:2f}, {2:05.2f}'.format(1.23456, 1.23456, 1.23456)

a.

Error

b.

‘1.234560, 1.22345, 1.23’

c.

No output

d.

‘1.234560, 1.234560, 01.23’

Answer: (d).‘1.234560, 1.234560, 01.23’

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The output of the code shown below is: