This is a collection of websites to learn programming, these sites are either completely free or contain a reasonable of free content
Codeacademy : Learn to code interactively, for free.
https://www.freecodecamp.org/ : Learn to code for free online
https://www.codewars.com/ : achieve code mastery through challenges
http://exercism.io/ : Download and solve practice problems in over 30 different languages.
http://programmingbydoing.com/ : Learn the basics of Java by completing assignments
https://www.codeschool.com : A free account gives you access to our 15 introductory courses
https://codeasy.net/welcome : An interactive, online platform for beginners to learn the C# programming language
https://www.sololearn.com/ : Learn to code for FREE
https://www.edx.org/ : An open-source higher education program from MIT and Harvard.
https://www.udemy.com : Many free courses as well as paid courses available from this site
https://www.sitepoint.com/ : various free tutorials for web based langauges
https://tutsplus.com/ : This site focuses mainly on paid content but has free tutorials as well
https://www.coursera.org/ : A variety of programming courses available for free