Python Iterator

Python Iterator


Iterator : iter(iterable[, sentinel]) The built-in function iter takes an iterable object and returns an iterator. If the second argument, sentinel, is given, then object must be a callable object. if the value returned is equal to sentinel, StopIteration will be raised, otherwise the value will be returned.

Download the Jupyter iterator notebook from Here

Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *