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) 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