Is there a function that returns the name of the variables defined in a Python instance? Something similar to the command who
in MatLab that returns the names of the variables defined by the user.
Is there a function that returns the name of the variables defined in a Python instance? Something similar to the command who
in MatLab that returns the names of the variables defined by the user.
According to Stack in English would look like this:
dir()
returns a list of variables in the scope globals()
returns a dictionary of global variables locals()
returns a dictionary of local variables