Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

funzione generatore python

def conteggio():
    i = 0
    while i <= 5:
        yield i
        i += 1

lista = list(conteggio())
print(lista) 
Source by www.meccanismocomplesso.org #
 
PREVIOUS NEXT
Tagged: #funzione #generatore #python
ADD COMMENT
Topic
Name
4+4 =