http://learncodethehardway.org/
The python book is aimed towards absolute beginners, the ruby book as well, it's the same stuff except with Ruby. The HTML version of the book is free, and it's a really good one.
There's also
http://www.codecademy.com/ , which is good to teach the basics, with an interactive approach, it is aimed more towards web developing however.
If you are an absolute beginner to programming "Learn * the hard way" is highly recommended, since the author goes beyond teaching just the language, and will teach general good practice (and tools) when it comes to programming.
Why do you want to learn to code, however? Knowing the purpose will help provide more appropriate resources / languages.