Module 6 introduced local and global names. Real programs have more than two levels, because functions can be defined inside functions. When Python meets a name, it looks for it in a fixed order of places, and knowing that order explains a whole family of confusing errors. This lesson gives you the rule, and the two keywords that change it.
More lessons in Complete Python Programming