Speaking of list-comprehension?

Chinook chinook.nr at tds.net
Fri Jul 1 18:43:12 CEST 2005

Chinook wrote whilst his head was elsewhere:
>>So, where might I have found this construct.  
>>>>>ta = [5, 15, 12, 10, 9]
>>>>>nta = [tai+[10,-10][tai>=10]for tai in ta]
>>[15, 5, 2, 0, 19]

Immediately after posting and shutting down last night, I had one of 
those expansive moments that visit us elderly more and more infrequently.

Duh :b whack %)  x + c[b]  and within a list comprehension too - how 

I guess the OL reply was just trying to be kind to the intellectually 
defecient ;')  Just goes to show that you can't help those that can't 
help themselves :<))

Thank you all for allowing me to waste your time,

Lee C

More information about the Python-list mailing list