Question #150

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

When the the float() function casts a string to a float, it does trim spaces. (docs.python.org/3/library/functions.html#float)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: