All challenges
Multiple ChoiceIntermediate 30s

re.findall Groups

Choose the best answer for: regex groups in findall
Options
  1. 1findall ignores groups and returns only whole matches
  2. 2findall returns a dict of named groups to values
  3. 3findall returns tuples when pattern has groups
  4. 4findall always returns plain strings not tuples

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