Question #157

What it the output of the code snippet below?
print(float("1,234"))

The function float() doesn't know how to interpret comas. It will throw a ValueError error. (docs.python.org/3/library/functions.html#float)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: