Iterators are collection of items and you can iterate through each item without any knowledge of the items stored in it and how they are stored. They can be list, dictionary or data generated from a sensor (which can be real time)

Let’s explain the above using an example:

Suppose…

Jatin

DE by profession

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store