I have a business that does in-class courses of programming. I only do local courses in my city so I am not poaching or trying to sell you something
a) Online courses are crap!. They don't work unless you have a strong base of the language. You could learn a bit with online courses but the whole how-to.
b) Where I live (a generic "banana country"), the salary of a programmer is from USD 1000 x month. If you are good at it, then you could earn $2k or $3k. Now, let's say that you are a good programmer and you decide to do online courses. With luck, you could earn around $400 x month, and it is only if you are picking a right course. So, most courses are done by cheap programmers or people that film their course during their spare time.
c) Watching a 3-hour long movie is tedious. Then try the same with a boring tutorial video. Most students never finish online courses.
d) The courses that I dictate are 100 hours long, about 3 days per hour. My courses are quite expensive (in comparison with online courses) but effective. An Udemy course costs $20, while my courses cost +$3000 US per student.
Is it possible to learn to programme in 100 hours?. Yep. How is it possible?. First, most people don't need to learn the whole language but to land a job. So my courses are focused on a simple task: develop business system such as an intranet system, database, security, web service, OOP and such.
e) The instructor/coach must be a seasoned programmer. I am seen many courses taught by junior programmers.
f) Most in-class courses are flexibles (they should be!), this means that the instructor must control the speed and focus of the course.
Advice: pick an in-class course and check who will be the instructor.
Also, if you want to pick a language: JAVA, by far!. Java developers earn a lot and it's highly demanded. Also, most java projects lasts years.