On Sun, 2008-05-18 at 23:25 +0200, azurIt wrote:
> Ved je to uplne trivialne :)
> 
> cisla = [5,3,5,4,4,4,7,2]
> rozne = []
> 
> for i in cisla:
>   if i not in rozne:
>     rozne.append(i)
> print rozne

Pokud by nezalezelo na poradi, coz v zadani explicitne nebylo (ech, kde
jste ma rebelska studentska leta?!), pak staci:

print set(cisla)

(ale s anglickym identifikatorem to bude fungovat rychleji ;-)


-- 

ViNiL

Her dream had come true. She was a folk singer.
        -- Forrest Gump

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Python mailing list
[email protected]
http://www.py.cz/mailman/listinfo/python

Odpovedet emailem