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
Зареєструйся Зараз
або Підпишись на майбутні тести