Question #145

What it the output of the code snippet below?
print(int("540.689"))

As the int() function, cannot cast strings with decimal points to integers, it will throw a ValueError error. (docs.python.org/3/library/functions.html#int)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: