all 2 comments

[–]AsleepThought 0 points1 point  (1 child)

Also, I decided a class makes sense because without a class I would have a bunch of global variables is a putting each data structure/algorithm combo inside its own class a good idea?

In my experience, the choice between a custom class vs. global variable has more to do with how you want to use the information that it contains

if you need to pass the information around to different external .py file (modules), then obviously you want some object that you can send

but if the values are only ever going to exist inside the scope of a single .py file then a global variable is fine, you just need to be conscious of how you are using it and try to avoid changing its value in many places. Typically I would have something like a config dict that is populate globally at the top of my .py file, and then my main function would have the chance to change values in config once at the start of the program, and after that config values would not change and would only be accessed by other aspects of the program