type: dict It contains all GLOBAL variable names in the keys of the dict. Then it contains all values, references or object in the value.
globals()['new_vairable'] = 2
# is the same as declaring at the top of the file
new_vairable = 2 Search
Jul 31, 20241 min read
type: dict It contains all GLOBAL variable names in the keys of the dict. Then it contains all values, references or object in the value.
globals()['new_vairable'] = 2
# is the same as declaring at the top of the file
new_vairable = 2