There are many methods to learn coding, but one of the funniest and most entertainment method is to learn coding by playing a game.
The best game I found to learn coding is called CodeCombat, created to teach you coding through playing the game. You can play the game in a browser windows. The game is about going through multiple corridors and to collect some diamonds, you pass levels and you can find different weapons to use. Also the game can join a clan
In CodeCombat you can learn following coding languages:
On the first levels, you just have to write down in the language you choose the correct movements for your character, you have to write for you character where to go, collect the diamonds and run from soldiers. The game is very fun to play and actually not boring as learning to code from a book or internet tutorials.
Have fun while you learn to code!