Issue
Do Python iterators have a hasnext
method?
Solution
No, there is no such method. The end of iteration is indicated by an exception. See the documentation.
Answered By - avakar
Do Python iterators have a hasnext
method?
No, there is no such method. The end of iteration is indicated by an exception. See the documentation.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.