Python
Which meth ...
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
Which methods a class must implement in Python to be considered an iterator. Select all that apply
__iterable__
__iter__
__prev__
__next__
__current__
__get__
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)
Подобається
Ввійдіть
щоб вподобати
Комментувати
Ввійдіть
щоб прокоментувати
Поширити
Tweet
Тести з
P
ython
Приєднуйся і вивчай Python
або
Дізнайся більше про
Тести з Python онлайн
Слідкуй за CodeGalaxy
Мобільний додаток Beta
Зворотній Зв’язок
Продовжуйте вивчати
тести з Python
What is a correct term for the following piece of Python syntax: 3 + 4...
What gets printed: a = b = [1, 2, 3] b[2] = 4 print(a) ...
Is it possible to link a Python program to code written in C?...
What will the output of the following statement be? print "%s is awes...
In a Python 2 new-style class declared as Child(Base), what is the correc...
True or False: Python packages can be imported from inside a Zip file....
Зареєструйся Зараз
або
Підпишись на майбутні тести
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати