All challenges
Multiple ChoiceIntermediate 180s

[Python] If guard Assign and use in expression

if (n := len(data)) > 0: use n.
Options
  1. 1:= walrus operator
  2. 2List comprehension
  3. 3Decorator
  4. 4Generator

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