Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!