bar = lambda k: lambda m: k + mdef foo(i): yield from map(bar, range(i)) a, b, c = foo(3)print(a(1), b(1), c(1))
Standard input is empty
1 2 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!