1.

Which of the following functions helps us to randomize the items of a list?(a) seed(b) randomise(c) shuffle(d) uniformThis question was posed to me by my school principal while I was bunking the class.I want to ask this question from Random module in section Mapping Functions and Modules of Python

Answer»

The CORRECT choice is (C) shuffle

The BEST I can explain: The FUNCTION shuffle, which is included in the random module, helps us to RANDOMIZE the items of a list. This function takes the list as a parameter.



Discussion

No Comment Found

Related InterviewSolutions