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.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz