Hey fellow noobs, nearly all of us posting something like "MINE IS RIGHT BUT IT'S STILL NOT WORKING" have mistakes in our line if we look closely.
I figure the sooner I accept the truth that "The computer doesn't actually randomly screw up; I do," the less energy you'll waste being frustrated with the computer. I've started to feel myself being a lot more patient with cleaning up my mistakes, which are constant and hiding in plain site, now that I feel close to not-at-all entitled to my computer simply understanding me regardless of the correctness of my code.
If you assume 100% of the time it's your error and not the computer's error, and keep checking, then you'll be wrong like 1/400 times.
Thinking this way has also helped me understand what software development is actually about. Like, I almost couldn't believe real software developers spent as long as I did parsing through lines playing the "What's different" game; now I've come to know this is actually quite a bit of what software development is about. Sure, I'm playing What's different with "SEE JANE RUN" and they're doing it with Dostoevsky, but it's the same processes of "debugging." A funny word. Like Bug. Really, it's just a mistake someone made. Bugs haven't been introduced--rules have just not been followed. And it's statistically impossible not to make such mistakes, so, this becomes a huge part of the job.
So I guess don't feel you're not learning when you're parsing over this dumb line to find your errors.