[Tutor] Yet another list comprehension question

Alan Gauld alan.gauld at btinternet.com
Sat Mar 3 02:59:51 CET 2007

"Andrei" <project5 at redrival.net> wrote

> Alternatively, you could put the results as keys in a dictionary, 
> then request
> mydict.keys() to get a list of unique outcomes.

I thought of that too, but couldn't think how to do it in a list
comprehension. It seemed like it should be possible but I
couldn't think of how - and didn't have a python interpreter

Alan G. 

More information about the Tutor mailing list