When I was obtaining my nano degree in "INTRODUCTION TO PROGRAMMING" over a timeline of approximately 4 months, I went through Udacity. They have a very good program for beginners and it escalates as you progress to the next level. I'm not sure about the cost because the nano degree was paid for by my company. You've received some great comments from the CV Professionals who already responded.
Best of luck to you!
Sheila recommends the following next steps:
Once you create an account you will get access to programming tutorials and courses to help you learn and complete each challenge.
Once you have some basic skills you can start exploring online with paid sites like Plural sight, Udemy.
Coursera is one more resource that offers number of free introductory programming courses in various specializations from recognized universities.
You can even learn a new language and practise that on these platforms.
Have a good day and cheers!
You can check it out at: https://www.edx.org/course/introduction-computer-science-harvardx-cs50x
Afterwards, you can continue to next level classes from there as well (all free) or you can go to
OSSU - is a nonprofit organization that aims to offer access to high-quality education for students around the world for free.
freeCodeCamp - non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone