Apr-04-2018, 07:23 PM
I cannot understand what is the purpose of iterators.
In other words, what are the benefits of using iterators (iter(), next(), etc) vs for example, looping with "for" statement?
As a beginner, I have some difficulty understanding these functions ( I am used to using for, while, loops)...
Thanks.

In other words, what are the benefits of using iterators (iter(), next(), etc) vs for example, looping with "for" statement?
As a beginner, I have some difficulty understanding these functions ( I am used to using for, while, loops)...
Thanks.