Single Choice Not Set

QWhat will be the output after the following statements?
 import random as rd
print(rd.randint(4,7))

ID: #3558 Python Module MCQ 400 views
Question Info
#3558Q ID
Not SetDifficulty
Python Module MCQTopic

Choose the Best Option

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

  • A A random float value between 4 and 7, including 4 and 7
  • B A random float value between 4 and 7, excluding 4 and 7
  • C A random integer value between 4 and 7, excluding 4 and 7
  • D A random integer value between 4 and 7, including 4 and 7
Correct Answer

Explanation

A random integer value between 4 and 7, including 4 and 7

Share This Question

Challenge a friend or share with your study group.