From e086640226233cbfb3511fef78aad1764416116c Mon Sep 17 00:00:00 2001 From: A Chethan Reddy Date: Thu, 20 Jan 2022 13:49:41 +0530 Subject: [PATCH 1/2] Changed Variable Name --- ch06-functions-and-loops/4-run-in-circles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ch06-functions-and-loops/4-run-in-circles.py b/ch06-functions-and-loops/4-run-in-circles.py index edd9d0e..1ef0bee 100644 --- a/ch06-functions-and-loops/4-run-in-circles.py +++ b/ch06-functions-and-loops/4-run-in-circles.py @@ -23,7 +23,7 @@ def doubles(num): # Call doubles() to double the number 2 three times -my_num = 2 +my_number = 2 for i in range(0, 3): - my_num = doubles(my_num) - print(my_num) + my_number = doubles(my_number) + print(my_number) From bd1f44358cc888f2b41e278c1b0cce73dbaac5db Mon Sep 17 00:00:00 2001 From: A Chethan Reddy Date: Thu, 20 Jan 2022 15:58:44 +0530 Subject: [PATCH 2/2] Added Comment --- ch11-modules-and-packages/1-working-with-modules/greeter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ch11-modules-and-packages/1-working-with-modules/greeter.py b/ch11-modules-and-packages/1-working-with-modules/greeter.py index 436349b..c4d0931 100644 --- a/ch11-modules-and-packages/1-working-with-modules/greeter.py +++ b/ch11-modules-and-packages/1-working-with-modules/greeter.py @@ -3,4 +3,6 @@ def greet(name): - print(f"Hello {name}!") + print(f"Hello {name}!") + # we can print or return the value + # But here we are printing the value, Hence a None value will be returned by default