To stop iterating over iterator following should be done:
Explanation
__next__ method is called during iteration over iterator. It should raise a StopIteration to signal the end of the iteration

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по Python
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты