From 9c377e3e3cdd289314744072f2415f3ecaebd57a Mon Sep 17 00:00:00 2001 From: PP6975H <52664716+PP6975H@users.noreply.github.com> Date: Fri, 2 Oct 2020 10:46:27 +0530 Subject: [PATCH 1/2] Update divide.py --- Code/divide.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/divide.py b/Code/divide.py index b4ea620..1c54368 100644 --- a/Code/divide.py +++ b/Code/divide.py @@ -4,11 +4,11 @@ if num2==0: - print 'Denominator cannot be 0' + print('Denominator cannot be 0') else: Division=float(num1)/float(num2) - print Division + print(Division) From 9d208ef07e9c21841ed3e1518775a716bb732311 Mon Sep 17 00:00:00 2001 From: PP6975H <52664716+PP6975H@users.noreply.github.com> Date: Fri, 2 Oct 2020 10:52:50 +0530 Subject: [PATCH 2/2] Update Factorial.py --- Code/Factorial.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Factorial.py b/Code/Factorial.py index 7c19124..7f0ce93 100644 --- a/Code/Factorial.py +++ b/Code/Factorial.py @@ -1,7 +1,7 @@ -x = input() +x = int(input("Enter a Number: ")) ans = 1 while(x>0): - ans*=x - x-=1 + ans *= x + x -= 1 -print ans +print(ans)