MCQ
Single Best Answer
Not Set
QWhat will be the output after the following statements?
from random import *
x = [0, 2, 4, 6, 8, 10]
print(sample(x, 3))
ID: #3560
Python Module MCQ
258 views
Question Info
#3560Q ID
Not SetDifficulty
Python Module MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
A list containing 3 random elements from list x
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic