See also
A symbol table is created for every
function when it is called.
The
def
statement puts the defined function name into the current symbol table.
locals()
returns a
dict that represents the
current symbol table.
Each
module has its own private symbol table.