From 0bfc28bd2f4123ee8bd0e141eb459614b61c5d16 Mon Sep 17 00:00:00 2001 From: kalyani-2003 <115861583+kalyani-2003@users.noreply.github.com> Date: Sat, 15 Oct 2022 13:09:37 +0530 Subject: [PATCH] change factorial =0 change factorial="0" by factorial="1" --- factorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factorial.py b/factorial.py index 7b24c2a..a3ea3b1 100644 --- a/factorial.py +++ b/factorial.py @@ -1,7 +1,7 @@ # To take input from the user num = int(input("Enter a number: ")) -factorial = 0 +factorial = 1 # check if the number is negative, positive or zero if num < 0: