1. iterator()
  2. _iterator_()
  3. _iteration_()
  4. _return_iterator_()
4 views

1 Answers

Answer: Option 2

An iterable object represents a collection of values that can be iterated. An iterable object must define a method named __iterator__() (with two underscores at the start and end of the name) which returns an iterator object for the collection.

4 views

Related Questions