lambda functions

Pierre pierre.gaillard at gmail.com
Mon Aug 31 03:41:57 EDT 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