adplus-dvertising
frame-decoration

Question

Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space)

a.

__345.355

b.

___345.355

c.

____345.355

d.

_____345.354

Posted under Strings in Python Python

Answer: (b).___345.355

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space)