PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
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)
Show Answer
Next Question
Correct Answer:
D
Explanation: random.randint(3, 6) can return any one of 3, 4, 5 and 6.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap