1.

Which of the following cannot be returned by random.randrange(4)?(a) 0(b) 3(c) 2.3(d) none of the mentionedI got this question in a national level competition.My question is from Random Module in chapter Mapping Functions and Modules of Python

Answer»

The correct ANSWER is (c) 2.3

The BEST EXPLANATION: Only INTEGERS can be returned.



Discussion

No Comment Found

Related InterviewSolutions