Question #933

What is the output of the code snippet below?
print(format(0.0001, "g"))

If -4 <= exp < p, the number is formatted with presentation type ‘f’ and precision p-1-exp. Otherwise, the number is formatted with presentation type ‘e’ and precision p-1! (python-reference.readthedocs.io/en/latest/docs/functions/...)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: