Categories

Dec 19, 2019 in Python
Q: What Are Python Iterators?

1 Answer

Dec 19, 2019

Iterators in Python are array-like objects which allow moving on the next element. We use them in traversing a loop, for example, in a “for” loop.

Python library has a no. of iterators. For example, a list is also an iterator and we can start a for loop over it.

Click here to read more about Python
Click here to read more about Insurance

Related questions

Madanswer
Aug 30 in Python
Aug 29 in Python
Jun 28 in Python
...