Laboratorio per l’Elaborazione MultiMediale Lezione 1 - Introduzione al corso
Introduzione al corso - ISPAC - Sapienza
Introduzione al corso - ISPAC - Sapienza
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Il Python: un esempio<br />
<strong>Introduzione</strong><br />
Gli strumenti<br />
Software <strong>per</strong> la produzione di filtri (e/o applicativi)<br />
Software multimedi<strong>al</strong>e<br />
Riportiamo un semplice esempio: il c<strong>al</strong>colo delle prime cinque potenze del 2.<br />
numeri = [1, 2, 3, 4, 5]<br />
def potenza_di_due(numeri):<br />
for n in numeri:<br />
yield 2 ** n<br />
gen = potenza_di_due(numeri)<br />
M. Scarpiniti <strong>Laboratorio</strong> <strong>per</strong> <strong>l’Elaborazione</strong> <strong>MultiMedi<strong>al</strong>e</strong> <strong>Lezione</strong> 1 - <strong>Introduzione</strong> <strong>al</strong> <strong>corso</strong> 35 / 44