Step 1: Go to the class with a lot of hopes that the course will help you become an expert coder.
Step 2: Try to pay attention in the class and then you realise that nothing worth learning can be taught here. Bang your head against a wall!
Step 3: Type “C/C++/Python… programming tutorials” in You Tube. Plug in your earphones and learn.
Step 4: Practice it online on any good website.
That's how most of us learn to code.
Hope that helps. :)