Codele / Advanced programming

Iterators and generators

Sometimes you want items one at a time, only when you ask, without making the whole list first. Think of a ticket dispenser that prints a ticket when you pull the lever.

Loading the playable lesson…