Iterators videos

in the create our on iterators why is the part
self.i=0
and what is it signifying

Hey @sankalparora5, self.i basically stores the number of index which iterator is pointing to. Here se we are implementing it without any list variable, so its value is itself the value. And it should always start from 0.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.