ID EN
Built-in Functions

globals

Python 3.11

Return the dictionary implementing the current module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called.

Syntax

PYTHON
globals()