Make class iterable Python
Python has two main constructs iterator and iterables Iteration protocol. The Iterable object implements __iter__() method and returns an Iterator object. The Iterator object implements… Read More »Make class iterable Python