All challenges
Multiple ChoiceIntermediate 30s

Dunder iter

Choose the best answer for: __iter__
Options
  1. 1__iter__ is a static method called once at creation
  2. 2__iter__ returns the last element stored in the container
  3. 3__iter__ is called by print() to render the object's text
  4. 4__iter__ makes an object iterable for for-loops

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