Vidyalelo
Python · Q59

Module in Python

Programming · Python · question 59

Q59

Which of the following is equivalent to random.randint(3, 6)?

A.
random.choice([3, 6])
B.
random.randrange(3, 6)
C.
3 + random.randrange(3)
D.
3 + random.randrange(4)
Answer

Answer: Option D

Solution

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