Question #152

What it the output of the code snippet below?
print(float("NaN"))

NaN , standing for not a number, is a numeric data type used to represent any value that is undefined or unpresentable. When the the float() function is given "NaN" , with any uppercase/lower combination as an argument, it will return nan . (docs.python.org/3/library/functions.html#float)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: