adplus-dvertising
frame-decoration

Question

What is the output of the code shown below?
'%.2f%s' % (1.2345, 99)

a.

‘1.2345’, ‘99’

b.

‘1.2399’

c.

‘1.234599’

d.

1.23, 99

Posted under Python

Answer: (b).‘1.2399’

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?