def f(x, y) = for _ in range x y = f(x, y - 1) if y > 0 else 1 return y + 1 print f(2,2)
1 2 10 42 11
Standard output is empty
File "prog.py", line 1 def f(x, y) = ^ SyntaxError: invalid syntax
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!