How to write an 'Iterator Object' in Python

Publicado em: 28 Maio 2019
no canal de: RAWR Coding
283
7

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.


Nesta página do site você pode assistir ao vídeo on-line How to write an 'Iterator Object' in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário RAWR Coding 28 Maio 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 283 vezes e gostou 7 espectadores. Boa visualização!