The best way to learn is practice. The more you write, the better you get. Find something you enjoy and see if you can't work programming into it. For example, this could be writing a game.

It...