fork(1) download
  1. def fat(n):
  2. if n <= 1:
  3. return 1
  4. return n * fat(n - 1)
  5.  
  6. fat(1000)
Runtime error #stdin #stdout #stderr 0.12s 24348KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
  File "./prog.py", line 4, in fat
  File "./prog.py", line 4, in fat
  File "./prog.py", line 4, in fat
  [Previous line repeated 995 more times]
  File "./prog.py", line 2, in fat
RecursionError: maximum recursion depth exceeded in comparison