

InterviewSolution
Saved Bookmarks
1. |
To shuffle the list(say list1) what function do we use?(a) list1.shuffle()(b) shuffle(list1)(c) random.shuffle(list1)(d) random.shuffleList(list1)This question was addressed to me in examination.This key question is from Lists in portion Lists & List Comprehension of Python |
Answer» RIGHT answer is (c) random.shuffle(LIST1) The explanation is: Execute in the SHELL to verify. |
|