Which methods a class must implement in Python to be considered an iterator. Select all that apply
Explanation
Any object that we want to be called an iterator must implement following 2 methods: __iter__ (is called on initialization of an iterator) and __next__ (should return the next value for the iterable)

Следи за CodeGalaxy

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

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