Vidyalelo
Python · Q52

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 52

Q52

To shuffle the list(say list1) what function do we use?

A.
list1.shuffle()
B.
shuffle(list1)
C.
random.shuffle(list1)
Answer
D.
random.shuffleList(list1)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board