MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
import random
print(random.sample(range(5, 20), 4))

ID: #3959 Python Random Module MCQ 222 views
Question Info
#3959Q ID
Not SetDifficulty
Python Random Module MCQTopic

Choose the Best Option

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

  • A A list of 5 unique numbers within the range of 4 to 19
  • B A list of 5 unique numbers within the range of 5 to 20
  • C A list of 4 unique numbers within the range of 5 to 19
  • D A tuple of 4 unique numbers within the range of 5 to 19
Correct Answer: Option C

Explanation

A list of 4 unique numbers within the range of 5 to 19

Share This Question

Challenge a friend or share with your study group.