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 #154
To cast an argument to inf or -inf , it has to be a string. float(-inf) will throw a NameError error. (docs.python.org/3/library/functions.html#float)
Which one will not return -inf?
— The Python Quiz (@thepythonquiz) September 1, 2020
float("-INF")
float("-inf")
float("-Inf")
float(-inf)
float("-INf")#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: