(n = 5)
| 1 | def fact(n = 5): |
| 2 | if n < 2: |
| 3 | return 1 |
| 4 | else: |
| 5 | return n * fact(n-1) |
| 6 | num = input("Enter a number to get its factorial: ") |
| 7 | if num == 'None' or num == '' or num == ' ': |
| 8 | print("Factorial of default value is: ",fact()) |
no outgoing calls
no test coverage detected