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 #587
import random
random.choice(2,3,4)
As random.choice() takes its numeric parameters in the form of a list, it will throw a TypeError error. (docs.python.org/3/library/random.html)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) December 27, 2020
import random
random.choice(2,3,4)
It will throw a TypeError error.
Either 2, 3 or 4
3,4
Any integer that is not 3
Any integer that is not 2, 3 or 4#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: