Question #333

What is the correct command to shuffle the list below?
fruit=['apple', 'banana', 'papaya', 'cherry']

The standard library function to shuffle a list in place is random.shuffle() . Ther others won't work! (docs.python.org/3/library/random.html)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: