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
The question was posed to me by my college professor while I was bunking the class.
This intriguing question comes from Strings topic in chapter Strings of Python