From 4c39237621e0e4e38d2e426d464841c325b2eca1 Mon Sep 17 00:00:00 2001 From: pradnya-2003 <115861363+pradnya-2003@users.noreply.github.com> Date: Sat, 15 Oct 2022 13:25:15 +0530 Subject: [PATCH] Factorial=0 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: