Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
I wish to make a container class to be iterable. Which of the following statements are true?
You can implement __next__() only in the container class
You can implement __iter__() and __next__() in the container class
You can implement __iter__() only in the container class and it must return self
You can implement __iter__() only in the container class and it must return an object from an iterable class
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!