Python Scope and the LEGB Rule: Resolving Names in Your Code – Real Python