Vidyalelo
Python · Q38

Module in Python

Programming · Python · question 38

Q38

What will be the output of the following Python function if the random module has already been imported? random.randint(3.5,7)

A.
Error
Answer
B.
Any integer between 3.5 and 7, including 7
C.
Any integer between 3.5 and 7, excluding 7
D.
The integer closest to the mean of 3.5 and 7

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board