def x(a): def y(): print(a) return y x1 = x(1)x2 = x(2)x1()x2()
Standard input is empty
1 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!