From abb96efbec24740a8d4daabd9b18ba8a35f1efb0 Mon Sep 17 00:00:00 2001 From: Sindhuja Golagani Date: Mon, 29 Dec 2025 20:21:32 +0530 Subject: [PATCH 1/5] Add greeting for factorial input of 0 or 1 Added a print statement to greet when the input is 0 or 1. --- Programs/P04_Factorial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Programs/P04_Factorial.py b/Programs/P04_Factorial.py index fb29789..f5262c3 100644 --- a/Programs/P04_Factorial.py +++ b/Programs/P04_Factorial.py @@ -7,6 +7,7 @@ def factorial(number): if number < 0: print('Invalid entry! Cannot find factorial of a negative number') if number == 0 or number == 1: + print("Hello") return 1 else: return number * factorial(number - 1) From 6024ed2e2c3314727e9eb8adb6b670721fcc7907 Mon Sep 17 00:00:00 2001 From: Sindhuja Golagani Date: Fri, 30 Jan 2026 17:49:23 +0530 Subject: [PATCH 2/5] Change greeting from 'Sindhu' to 'Sindhuja' --- Programs/P01_hello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Programs/P01_hello.py b/Programs/P01_hello.py index 96fa755..117b32b 100644 --- a/Programs/P01_hello.py +++ b/Programs/P01_hello.py @@ -6,4 +6,4 @@ def justPrint(text): print(text) if __name__ == '__main__': - justPrint('Hello Sindhu') + justPrint('Hello Sindhuja') From 677d2e9a9645ebd7646525365594f4c7b646ab55 Mon Sep 17 00:00:00 2001 From: Sindhuja Golagani Date: Fri, 30 Jan 2026 17:49:58 +0530 Subject: [PATCH 3/5] Add arithmetic operations in justPrint function Added variables a, b, and c for arithmetic operation. --- Programs/P01_hello.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Programs/P01_hello.py b/Programs/P01_hello.py index 117b32b..0dd4ea6 100644 --- a/Programs/P01_hello.py +++ b/Programs/P01_hello.py @@ -4,6 +4,9 @@ def justPrint(text): '''This function prints the text passed as argument to this function''' print(text) + a=10 + b=20 + c=b-a if __name__ == '__main__': justPrint('Hello Sindhuja') From 4db3289743c8bbf8ebbf49493e8ffdd34f60312d Mon Sep 17 00:00:00 2001 From: Sindhuja Golagani Date: Fri, 30 Jan 2026 17:52:01 +0530 Subject: [PATCH 4/5] Update Programs/P01_hello.py Co-authored-by: appmod-pr-genie-qa[bot] <236364154+appmod-pr-genie-qa[bot]@users.noreply.github.com> --- Programs/P01_hello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Programs/P01_hello.py b/Programs/P01_hello.py index 0dd4ea6..9212a33 100644 --- a/Programs/P01_hello.py +++ b/Programs/P01_hello.py @@ -4,7 +4,7 @@ def justPrint(text): '''This function prints the text passed as argument to this function''' print(text) - a=10 + base_value = 10 b=20 c=b-a From 5c4fe06590260b7c99572dddcdc0e324082dc0e6 Mon Sep 17 00:00:00 2001 From: Sindhuja Golagani Date: Fri, 30 Jan 2026 17:52:09 +0530 Subject: [PATCH 5/5] Update Programs/P01_hello.py Co-authored-by: appmod-pr-genie-qa[bot] <236364154+appmod-pr-genie-qa[bot]@users.noreply.github.com> --- Programs/P01_hello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Programs/P01_hello.py b/Programs/P01_hello.py index 9212a33..b59d464 100644 --- a/Programs/P01_hello.py +++ b/Programs/P01_hello.py @@ -6,7 +6,7 @@ def justPrint(text): print(text) base_value = 10 b=20 - c=b-a + difference = increment_value - base_value if __name__ == '__main__': justPrint('Hello Sindhuja')