lambda functions

Pierre pierre.gaillard at gmail.com
Mon Aug 31 09:41:57 CEST 2009


Hello,

I would like to know if it is possible to define a loop in a lambda
function....

How to manage the indents ? Example :
s_minus_1 = lambda s : for index in range(0, len(s)) : s[index] = s
[index]-1


Thanks !




More information about the Python-list mailing list