For amazing, structured courses on programming, join Codecademy: https://bit.ly/2M3t5Mr
In this video I demonstrate how to write an iterator class/object in python.
An iterator is an object that contains a countable number of values.
An iterator is an object that can be iterated upon, meaning that you can traverse through all the values.
Technically, in Python, an iterator is an object which implements the iterator protocol, which consist of the methods __iter__() and __next__().
The next video will be about Generators.
Sur cette page du site, vous pouvez voir la vidéo en ligne How to write an 'Iterator Object' in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur RAWR Coding 28 mai 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 283 fois et il a aimé 7 téléspectateurs. Bon visionnage!