Tried building my first app without tutorials and got a weird bug on line 4, now I'm stuck between two fixes
Last week I decided to build a little to-do app with just Python and no tutorial, and I got a NameError on line 4 my first hour in. I looked it up and found two camps: one says use global variables for quick fixes, the other says pass everything through functions. I tried the global route first and it worked, but my code got messy real fast, so now I'm torn. Which way did you go when you were just starting out, and did the messy version ever come back to bite you?