Ad
Code
Diff
  • factorial = lambda n: 1 if n <= 1 else n * factorial(n-1)
    # test 
    • factorial = lambda n: 1 if n <= 1 else n * factorial(n-1)
    • factorial = lambda n: 1 if n <= 1 else n * factorial(n-1)
    • # test