The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #157
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)
What it the output of the code snippet below?
— The Python Quiz (@thepythonquiz) July 30, 2020
print(float("1,234"))
1.234
1234
It will throw a ValueError error.
1,234
1.0#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: