1.

Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space).(a) __345.355(b) ___345.355(c) ____345.355(d) _____345.354The 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

Answer»

Right ANSWER is (b) ___345.355

The EXPLANATION is: EXECUTE in the SHELL to VERIFY.



Discussion

No Comment Found

Related InterviewSolutions