Re:WTFPython – Understanding Python through surprising snippets
by fxj on Monday December 23, 2019 @06:14AM
(#21862919)
You forgot the i=i in your lambda definition. Then there exists a local variable i and everything works as you wanted.
[ Parent
| on HN ]
There are no comments on this comment yet.