The struggle is real !
I'm not sure what you mean..
A big part of learning to program is making mistakes and solving them..
It's the best way to learn and remember..
Computers are stupid, you have to tell them exactly what you want..
If you say:"walk to the table and sit down" to a person, the person will walk to the table, grab a chair and sit down on the chair..
If you say:"walk to the table and sit down" to a computer, it will sit down..
if you say:"walk to the table and when you have reached the table sit down"
The computer will still not grab a chair and sit down on the chair, it will just sit down next to the table..
If you want it to grab a chair and sit on it, you have to tell it specifically to do that..
So often you will think you have the right actions/commands, but will find out the computer doesn't understand..
Solving those situations will make you a better programmer..