def foo(): x = 123 return lambda y: x+y q = foo() print q(5)
Standard input is empty
128
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!