Single Choice Not Set

QWhat will be the output after the following statements?
import random
print(int(random.random()*10))

ID: #3956 Python Random Module MCQ 255 views
Question Info
#3956Q ID
Not SetDifficulty
Python Random Module MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 10
  • B A random integer number within the range of 0 to 9
  • C None
  • D A random floating point number within the range of 0 to 9
Correct Answer

Explanation

A random integer number within the range of 0 to 9
No Previous Next Question

Share This Question

Challenge a friend or share with your study group.