Build it, Break it, Remake it
After all the work and sweat put into making my Python output look good, the time has come to tear it apart and rebuild. Why? Because the code is a disorganized mess. Functions and variables were created on the fly without any future-looking structure. There is no sustainable way of going forward with it. Much as it hurts, it's time to throw away the original baby with its dirty bath water and begin again. I owe part of my courage to this guy, Pete the Web Developer . He encourages us to build before we're ready and to learn from our mistakes. What was my number one mistake? (1) I didn't organize my code into logical modules. Mainly because I was afraid of making my own modules. Turns out my fears were misplaced. "Module" is merely a fancy alias for a (dot) Py file. You put some variables and/or functions into a separate Py file and suddenly it's a "module". Afzal teaches how to store global variables and retrieve them where needed here: ( global va...