NIELIT O Level Exam

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

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

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

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 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad