[Tutor] Should this be a list comprehension or something?
Alan Gauld
alan.gauld at freenet.co.uk
Fri Jan 28 23:00:04 CET 2005
> Alan, I'd never seen the criterion befor that list comprehensions
should
> be used to generate other lists.
Its not so much a criterion that they *should* be used that way,
its just that its what they do. A list comprehension creates a list!
Thats why they are called *list* comprehensions. :-)
Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list