In my opinion it is very hard to learn to program from scratch completely on your own.
The key is not learning the syntax of a programming language and the tools, but the principles of programming, logical thinking, creating algorithms to solve a given problem.
I would recommend you attend a training course on programming.