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 #145
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)
What it the output of the code snippet below?
— The Python Quiz (@thepythonquiz) June 18, 2020
print(int("540.689"))
540.0
541
540
It will throw a ValueError error.#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: