Return the live dictionary of module-level global variables, functions, and classes for the current script run.
Syntax
globals()Returns
dict — Live dict of global symbols. Reading and string-key updates apply directly to the global scope; non-string keys and Recognition changes raise an error.Example
status = "ready"
if "status" in globals():
text(str(globals()["status"]))