GOTCHA with list comprehension

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


Chris Angelico <rosuav at gmail.com>:

> 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.


Marko


More information about the Python-list mailing list