Question #58

Which function randomly returns a list element?

random.choice() returns a random element from the non-empty sequence seq. If seq is empty, it raises an IndexError. (docs.python.org/3/library/random.html#random.choice)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: