Python __iter__() and __next__() | Converting an object into an iterator
In many cases, we may need to access an object in a way that treats it as if it were an iterator. This means we want to interact with the object in a manner similar to how we would with an iterator, enabling us to iterate over it or perform other iterable operations. For clarity, it's useful to say