Python – Iterator
Python – Iterator Here, you will learn about the iterator function iter() in Python. Iterators are implicitly used whenever we deal with collections of data types such as list, tuple or string (they are quite fittingly called iterables). The usual method to traverse a collection is using the for loop, as shown below. Example: myList…
Read more