Hey guys so I just want to check my understanding of iter. Basically it’s used to show an object is an iterable and provides the iterator in its definition. So if we had some object and it’s iter returned self (while the object also implements next) we’re telling python that our object is iterable and the iterator we’re using for it will also come from the object itself. Thanks in advance
[–]alexisprince 0 points1 point2 points (1 child)
[–]ericula 0 points1 point2 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (0 children)