Programming and Problem Solving through Python : Modules in Python

निम्नलिखित में से कौन सा random.randint(3, 6) के बराबर है? , Which of the following is equivalent to random.randint(3, 6)?

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




Solution
D. 3 + random.randrange(4)



Explanation
random.randint(3, 6) can return any one of 3, 4, 5 and 6.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad