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: