Report Bug

QusWhat does random.shuffle(x) do when x = [1, 2, 3]? Qusजब x = [1, 2, 3] random.shuffle(x) क्या करता है?


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
D. none of the mentioned


Solution
C. shuffle the elements of the list in-place



Explanation
The elements of the list passed to it are shuffled in-place.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad