How to write an 'Iterator Object' in Python

Pubblicato il: 28 maggio 2019
sul canale di: 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.


In questa pagina del sito puoi guardare il video online How to write an 'Iterator Object' in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato RAWR Coding 28 maggio 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 283 volte e gli è piaciuto 7 spettatori. Buona visione!