I'm also learning from home and I tell you it could be discouraging when you start writing bug-filled codes and it seems like it's not just working!
It should be expected that things would not always go the way you expected. And there are days you feel like you shouldn't stop coding because your codes are working as expected.
So here's the point, take each day count, be sure you understand the reasons why your codes are working than just memorizing the syntax and all. Start with the basics and understand it. Also experiment beyond what is written in books, that you would know when to put a ":" instead of a ";" (I've spent two days debugging such before)
If you're learning through an online platform, take each learning module at a time. Don't rush through because you want to meet a deadline.
Again, be patient with yourself. You're really smart even if your basic calculator program is not running. Don't worry, go over again and again and again until it works.
Finally, Google stuffs you don't understand. Build small projects. Push to your Github repo. Start a blog and write about what you've learnt at the end of the day. Have fun too.
I hope this helps. 🤗