MCQ Answer

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

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

लिस्ट में शफल (फेरबदल) करने के लिए (say list1) हम किस फ़ंक्शन का यूज़ करते हैं?
Topic : Sequence data types in python

A. list1.shuffle()

B. shuffle(list1)

C. random.shuffle(list1)

D. random.shuffleList(list1)




Correct Answer is :

C. random.shuffle(list1)



Explanation
Execute in the shell to verify.
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