diff --git a/Programs/P01_hello.py b/Programs/P01_hello.py index 83d4136..3dd3397 100644 --- a/Programs/P01_hello.py +++ b/Programs/P01_hello.py @@ -4,6 +4,11 @@ def justPrint(text): '''This function prints the text passed as argument to this function''' print(text) + base_value = 10 + b=20 + difference = increment_value - base_value if __name__ == '__main__': - justPrint('Hello Sindhu12390') + justPrint('Hello Sindhuja') + + 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)