All challenges
Multiple ChoiceBeginner 30s

random.choice

Choose the best answer for: random.choice
Options
  1. 1choice(seq) returns a random sample of multiple elements
  2. 2choice(seq) returns the random index of an element
  3. 3choice(seq) returns a random element from sequence
  4. 4choice(seq) shuffles and modifies the given sequence in place

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle