One of the issues in programming is communication—how do you share information between two functions or between a group of functions? The most direct way is to use global variables.
But Python has idiosyncratic rules about global and local variables. Python likes to do things its own way.
This chapter covers
The difference between local and global variables
Using this keyword to prevent “the local ...