All challenges
Multiple ChoiceIntermediate 30s

itertools.groupby

Choose the best answer for: groupby()
Options
  1. 1groupby is a list method grouping equal values
  2. 2groupby returns a dict mapping keys to elements
  3. 3groupby sorts the input before grouping values
  4. 4groupby groups consecutive elements by key

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