I am trying to iterate through the variables set in a python script. I came across the following:
Enumerate or list all variables in a program of [your favorite lang
The question title leads me to see this. But this is not what I wanted.
self-answering is below
[s for s in dir() if not '__' in s]