f=lambda n,k=n<0:n and n%10+(k+f(k-n//10))*10 print(f(4))
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 1, in <module> NameError: name 'n' is not defined
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!