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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy