Python next function example

The next() is an inbuilt function in Python that is used to retrieve the next item from an iterator. In