List comprehension confusion...

Andrew Bennetts andrew-pythonlist at
Sun Feb 2 04:39:58 CET 2003

On Sun, Feb 02, 2003 at 03:10:27AM +0000, Afanasiy wrote:
> I am confused about the purpose of list comprehensions.
> What can they do which an explicit for loop cannot?

They can be used in an expression.


More information about the Python-list mailing list