On Apr 3, 12:13 pm, "bahoo" <[EMAIL PROTECTED]> wrote: > On Apr 3, 2:31 pm, "Matimus" <[EMAIL PROTECTED]> wrote: > > > It depends on your application, but a 'set' might really be what you > > want, as opposed to a list. > > > >>> s = set(["0024","haha","0024"]) > > >>> s > > > set(["0024","haha"])>>> s.remove("0024") > > >>> s > > > set(["haha"]) > > This sounds cool. > But is there a command I can convert the "set" back to a "list"?
yeah... >>> l = list(s) >>> l ["haha"] -- http://mail.python.org/mailman/listinfo/python-list