Iteration protocol-zrange

Whats the significance of iter in iterator class?
As the iterator class is called by the iter ()in iterable class. And the next() is then called for iteration. Does the Iter() in iterator class is even called??

Plz explain the order in which the classes and methods are being executed in the zrange case.

iter method that is called on initialization of an iterator. This should return an object that has a next or __ next __ (in Python 3) method.
So iter is called when iteration is initialized.

Hey Himanshu, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.