On Dec 13, 8:37 am, mattia <ger...@gmail.com> wrote:
> How can I insert non-duplicate data in a list? I mean, is there a
> particular option in the creation of a list that permit me not to use
> something like:
> def append_unique(l, val):
>     if val not in l:
>         l.append(val)
>
> Thanks,
> Mattia

Check out the set() data type.

~Sean
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to