On your Python journey, you’ve probably learned about functions and loops. To fully understand functions and loops in Python, you need to be familiar with the issue of scope.
This is a portion of the complete course, which you can find here:
https://realpython.com/courses/python...
The rest of the course covers how to:
- Inspecting the Built-in Scope
- Using the global statement
- Preventing common pitfalls