References: Functions with Parameters and Scope¶
-
Wikipedia — Function (computer programming) https://en.wikipedia.org/wiki/Function_(computer_programming) Covers the concept of functions in programming languages, including how parameters work, return values, and why functions are the foundation of reusable, organized code.
-
Wikipedia — Scope (computer science) https://en.wikipedia.org/wiki/Scope_(computer_science) Explains local and global scope, variable visibility across different program regions, and how scope rules determine which code can access which variables — directly matching this chapter's scope topics.
-
Wikipedia — Parameter (computer programming) https://en.wikipedia.org/wiki/Parameter_(computer_programming) Distinguishes parameters from arguments, describes default parameter values and keyword arguments, and explains how data flows into functions — foundational knowledge for this chapter.
-
Python Crash Course by Eric Matthes (No Starch Press) Chapter 8 provides an accessible, project-driven introduction to defining functions, passing arguments, using default values, and returning values — ideal supplemental reading for students ages 10–14 working through this chapter.
-
Python for Kids by Jason R. Briggs (No Starch Press) Uses humor and visual examples to explain function parameters and scope at a level suited to younger learners, making it an excellent companion resource for students new to the concepts of local and global variables.
-
Official Python Docs — Defining Functions https://docs.python.org/3/tutorial/controlflow.html#defining-functions The authoritative Python reference on writing functions with parameters, default argument values, and keyword arguments, with short examples that mirror exactly what this chapter teaches.
-
Real Python — Python Scope and the LEGB Rule https://realpython.com/python-scope-legb-rule/ A thorough tutorial explaining local, enclosing, global, and built-in scope in Python with clear code examples, helping students visualize why variables inside functions do not collide with variables outside.
-
W3Schools — Python Functions https://www.w3schools.com/python/python_functions.asp Offers short, runnable examples of function parameters, default values, keyword arguments, and return statements in a beginner-friendly format that students can explore alongside the chapter exercises.
-
Programiz — Python Function Arguments https://www.programiz.com/python-programming/function-argument Clearly explains positional arguments, keyword arguments, and default parameter values with side-by-side code comparisons, making it easy for beginners to see how each argument style changes a function call.
-
GeeksforGeeks — Global and Local Variables in Python https://www.geeksforgeeks.org/global-local-variables-python/ Explains the difference between global and local variables with simple, well-commented examples and common beginner mistakes, reinforcing the scope concepts introduced in this chapter.