fork download
  1. def f(x, y) =
  2. for _ in range x
  3. y = f(x, y - 1) if y > 0 else 1
  4. return y + 1
  5.  
  6. print f(2,2)
Runtime error #stdin #stdout #stderr 0.01s 7724KB
stdin
1
2
10
42
11
stdout
Standard output is empty
stderr
  File "prog.py", line 1
    def f(x, y) =
                ^
SyntaxError: invalid syntax