Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Which line picks one item at random from the list colours? | StemPy Lab
Quizzes
/
Which line picks one item at random from the list colours?
Python Programming
Medium
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Modules and Libraries
Created by
StemPy Lab
Which line picks one item at random from the list colours?
random.randint(colours)
random.shuffle(colours)
random.choice(colours)
random.seed(colours)
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A big value pulls one average more than the other. What is statistics.mean([2, 4, 30])?
A missing value: the target 9 is not in [4, 7, 1, 8]. How many comparisons does linear search make before it gives up? →
More on
Python Essentials › Modules and Libraries
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
A shop sells these items on one day, with the prices [20, 25, 25, 30, 22, 28, 400].
Easy
Roll two dice 6000 times, with the seed 3.
Medium
Which module would you use for each job?
Easy
Find out, with dir and help, which function of math gives the sine of an angle, and which gives the…
Easy
All problems on this topic →