The best way to learn a programming language is to do it, find some project that you want to work on and starts working on it. I have a bad habit of just watching hours long youtube tutorial on a language ? but then after that I barely remembers anything, but it gives you an idea of what u can do with it. Normally what i do is I watch the video first, then starts to work on the project at the same time searching more on how I do it. Slowly coding your project, I am sure you will be able to remember what u coded