(Apr-14-2020, 03:51 AM)deanhystad Wrote: dir() will return a list of all "things" you can see from the current context. If your variable names followed a pattern you could search through the items for names matching the pattern and add them to your listI think you should refer to globals() and locals(), not dir()
Still, bunch of [variables'] names "matching a pattern" suggest you should be considering a data structure instead.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs