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 #173
print(float("56%"))
The float() option cannot cast a string containing the % character. (docs.python.org/3/library/functions.html#float)
What it the output of the code snippet below?
— The Python Quiz (@thepythonquiz) July 20, 2020
print(float("56%"))
0.56
56
It will throw a ValueError error.
56.0#python #python3 #pythonprogramming #learnpython
What it the output of the code snippet below?
— The Python Quiz (@thepythonquiz) September 4, 2021
print(float("56%"))
0.56
56
It will throw a ValueError error.
56.0
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: