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 #42
random.choice() only accepts a list as a parameter. random.randint() only returns integers. Both functions are part of the random library that is part of the standard library. (docs.python.org/3/library/random.html)
Which one is wrong?
— The Python Quiz (@thepythonquiz) June 10, 2020
random.choice() accepts a list as a parameter.
random.randint() returns a float.
Both functions are part of the random module.#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: