🎙️
17
c/coding-for-beginnersmark_pricemark_price27d agoMost Upvoted

Took me 3 months to figure out why my code kept breaking on line 47

I was learning Python from a tutorial that used tabs for indentation. Then I switched to a different tutorial that used spaces, and my whole program started throwing errors. My brain couldn't see the difference at first. It took a full 3 months of copying code wrong before I finally realized I had to match the indentation style. Has anyone else struggled with something as simple as spaces vs tabs?
2 comments

Log in to join the discussion

Log In
2 Comments
verawhite
verawhite26d ago
3 months? Honestly that's kind of impressive in a sad way lol. I spent a whole week once trying to figure out why my CSS wouldn't apply. Turned out I was editing the wrong file the whole time because I named two folders "style" and "styles" like an idiot.
3
hayden144
hayden14426d ago
@verawhite I once spent two hours debugging a typo in my own name.
4