All Bugs
+5 ptsintermediate

The generator emptied by a peek

A Python generator is iterated prematurely, leaving nothing for the caller.

pythoniteratorsgenerators

Your task

One line in this snippet contains a bug. Click the line you think is wrong.

python