[python] Short description of the scoping rules?

In Python,

any variable that is assigned a value is local to the block in which the assignment appears.

If a variable can't be found in the current scope, please refer to the LEGB order.