lambda functions

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


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

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

Thanks !

More information about the Python-list mailing list