s = '123'p = lambda: print(s)p()s = '456'p() s = '123'p2 = lambda x=s: print(x, s)p2()s = '456'p2()
Standard input is empty
123 456 123 123 123 456
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!