lambda functions

Paul Rubin http
Mon Aug 31 11:48:14 EDT 2009


Pierre <pierre.gaillard at gmail.com> writes:
> s_minus_1 = lambda s : for index in range(0, len(s)) : s[index] = s
> [index]-1

What are you trying to do here anyway?  That looks broken. 
Maybe you want the list.insert method.



More information about the Python-list mailing list