Python · Lesson 7.4 · Pro
Scope
Which names a function can see, and why passing values in beats changing globals.
In this lesson
- Names inside stay inside
- Reading outside names
- Assigning makes a new local
- Changing a list you were given
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.