def transform(n): def add(x): return n + x return add f = transform(4)print f(3)
Standard input is empty
7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!