Single Choice
Not Set
QWhat will be the output after the following statements?
import random
print(int(random.random()*10) + 1)
ID: #3957
Python Random Module MCQ
223 views
Question Info
#3957Q ID
Not SetDifficulty
Python Random Module MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
A random whole number within the range of 1 to 10
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic