fork download
  1. # your code goes here
  2. def fact(n):
  3. if n ==1 or n == 0:
  4. return 1
  5. else:
  6. return n*fact(n-1)
  7. print(fact(5))
Success #stdin #stdout 0.02s 9052KB
stdin
Standard input is empty
stdout
120