[Python] Differenze tra liste e insiemi (era: Re: or)

Nicola Larosa nico a tekNico.net
Sab 29 Mar 2014 19:53:06 CET


> Diego Barrera ha scritto:
>> Ho dato una ripassata veloce al tipo di dato set;
>> esattamente quale e' l'utilizzo pratico di set?

Daniele Zambelli wrote:
> La differenza fondamentale è che in un insieme gli elementi
> non sono ripetuti.

Quella è una. Un'altra è che non sono ordinati.

-- 
Nicola Larosa - http://www.tekNico.net/

I still get as annoyed as ever by "use the right tool for the job" -
the bland truism meant to shut down critical discussion and engagement
with the tasks and choices in software engineering, replacing it with
a weak passionless technical fatalism. - Ian Bicking, February 2014



Maggiori informazioni sulla lista Python