Yeah I agree on the youtube vids, they're really good and usually you get a good feeling about how to code during watching them because you get to see the instructors programming.
Another resource could be codecademy.com, which is a form of interactive learning with small task that eventually build up to you knowing a lot about whatever program you've chosen. I also mentioned codecademy in another post recently because they're such a great source of learning.