Dear All, I have built a list with multiple occurrences of a string after some text processing that goes something like this:
[cat, dog, cat, cat, cat, dog, dog, tree, tree, tree, bird, bird, woods, woods] I am wondering how to truncate this list so that I only print out the unique elements, i.e. the same list but with one occurrence per element: [cat, dog, tree, bird, woods] Any help much appreciated! Regards, Spyros
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor