Iterators and Generators

Use iter() and next()

① Learn

An iterator gives values one at a time. iter() creates it, and next() asks for the next value.

② Implement — write it, run it, submit
Goal

Make `first_item` equal `pen`.

Output
Hints
  • Stuck? Reveal a hint.
Free Tools & Calculators