What is your goal?
The first thing you have to do is to decide why you want to learn to code and what the potential outcome would be? Taking a few moments and really think about it - do you want to do programming for a living? Then taking some professional courses would be best. Or maybe you just want to build websites as a hobby? Then you can start small and do a few free online lessons.