repl.it
@octavelr/

math-course

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
def factorial(n):
  if n == 0:
    return 1
  else:
    return n * factorial(n - 1)
print(factorial(5))
Fetching token
?