Programming and Problem Solving through Python : Modules in Python

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

Which of the following is equivalent to random.randrange(3)?




Solution
B. random.choice(range(0, 3))



Explanation
It returns one number from the given range.
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