GOTCHA with list comprehension

Marko Rauhamaa marko at
Wed Aug 5 11:01:12 CEST 2015

Chris Angelico <rosuav at>:

> You can chain 'for' and 'if' clauses as much as you like, and they
> behave exactly the way you'd expect.

How do you know what I'd expect?

I wouldn't know what to expect myself.


More information about the Python-list mailing list