Computer Science
Which of the following cannot be returned by random.randrange(4) ?
- 0
- 3
- 2.3
- None of these
Python Libraries
2 Likes
Answer
2.3
Reason — The random.randrange(4) function returns a randomly selected integer from the range [0, 1, 2, 3], which includes integers only. It cannot return a floating-point number like 2.3.
Answered By
2 Likes
Related Questions
Identify the Domain name and URL from the following:
http://www.income.in/home.aboutus.htmlWhich protocol is used to create a connection with a remote machine?
Find errors (if any) in the following code and rewrite the code underlining each correction:
x = int("Enter value of x:") for in range[0, 10]: if x = y print("They are equal") else: Print("They are unequal")Mr. William wants to remove all the rows from table INVENTORY to release the storage space but he does not want to remove the structure of the table. What MySQL statement should he use?