Using an iterator function to build a list
Mon Mar 30 2020 12:18:27 GMT+0000 (Coordinated Universal Time)
Saved by @bambifruit #python #python #iterator #functions
Iterator is an object which allows a programmer to traverse through all the elements of a collection, regardless of its specific implementation. In Python, an iterator is an object which implements the iterator protocol. The iterator protocol consists of two methods.
https://www.30secondsofcode.org/python/s/unfold/
Comments