All challenges
Multiple ChoiceBeginner 30s

Set Add vs Update

Choose the best answer for: set modification
Options
  1. 1update() only works on lists and never on sets
  2. 2add() adds one element, update() adds many
  3. 3add() and update() are identical in what they do
  4. 4add() takes an iterable and adds every element in it

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