Vidyalelo
Python · Q131

Module in Python

Programming · Python · question 131

Q131

What does random.shuffle(x) do when x = [1, 2, 3]?

A.
error
B.
do nothing, it is a placeholder for a function that is yet to be implemented
C.
shuffle the elements of the list in-place
Answer
D.
none of the mentioned

Answer: Option C

Solution

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