f = lambda a,b: "f(%s,%s)" % (a,b)print reduce(f, "abcd")
Standard input is empty
f(f(f(a,b),c),d)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!