8 Nov
2017
8 Nov
'17
11:38 p.m.
On 11/07/2017 03:12 PM, Soni L. wrote:
exec("def one(x):\n [r] = x\n return r") # who says python doesn't have one-liners?
(ofc, some would argue you should use:
one = (lambda x: (lambda y: y)(*x))
Most would argue that def one(x): [r] = x return r is the appropriate code. -- ~Ethan~