A stopiteration exception is thrown after Python next() completes


The iterator next () raises a StopIteration() exception
after all lines have completed

Read More: