def f1(arg): def f2(): print(arg) return f2 a = f1('puk')a()
Standard input is empty
puk
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!