1.

Which type of elements are accepted by random.shuffle()?(a) strings(b) lists(c) tuples(d) integersI got this question by my school teacher while I was bunking the class.Query is from Random Module in division Mapping Functions and Modules of Python

Answer» RIGHT OPTION is (B) lists

For explanation: Strings and tuples are immutable and an integer has no LEN().


Discussion

No Comment Found

Related InterviewSolutions