[Tutor] Else in list comprehension

Bernard Lebel 3dbernard at gmail.com
Sun May 8 04:02:25 CEST 2005


Hello,

I just started using list comprehensions (loving them!)

I know you can add an if statement, but can you put in there an else?
I could not find an example of this.


Thanks
Bernard


More information about the Tutor mailing list