What does random.shuffle(do when x = [1, 2, 3]?
A. return a list in which the elements 1, 2 and 3 are in random positions
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
D. none of the mentioned
Answer:A
What does random.shuffle(do when x = [1, 2, 3]?
A. return a list in which the elements 1, 2 and 3 are in random positions 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 D. none of the mentioned
Explanation: The elements of the list passed to it are shuffled in-place.