Question #587

What is the output of the code snippet below?
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)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: