Skip to content

Commit 148d9da

Browse files
committed
I have updated the print statement to understand
1 parent 8934bab commit 148d9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/factorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ def factorial_recursive(n: int) -> int:
6565
doctest.testmod()
6666

6767
n = int(input("Enter a positive integer: ").strip() or 0)
68-
print(f"factorial{n} is {factorial(n)}")
68+
print(f"factorial of {n} = {factorial(n)}")

0 commit comments

Comments
 (0)