I'm having difficulty understanding how to incorporate a general structure into my scripts. Currently I'm writing code that will parse out various sections of a data file into separate lists (a reader as I understand it), then code that will allow me to make user-determined alterations to said lists, and finally a code for writing the new lists to a file. Ultimately the goal is to have code that will allow me to add/remove particular data values and produce new data files with the determined changes. Up until now, writing the code itself has not been particularly difficult to read edit and write the file, but I have no idea how the various functions should be written so as to be "neat and organized". Because I'm learning the language alongside actually doing this little project, I'm unfamiliar with many of what I refer to as I guess standard code structuring. Generally speaking for a project like this should I be writing it all in one script made up of separate classes/functions? Is it better to write separate modules that import return values from one into another? Is it typical that a single module would have more than one class? From a sort of birds eye view approach to structuring the code what would be the best way to do this? Currently there is no actual structure to my code and everything is literally written outside of any main() classes and functions and it simply just runs given a particular input file but I'm fairly certain this is likely not the proper way to write code. Continue reading...