News for hackers. Stuff that matters.

Ask HN: Python 2.7 book, any recommendations?

Hi, I've just read trough the Python 2.7 tutorial and want to get in more deeply. I want a book targeted at beginners and it would be cool if it teaches programming too, not just the language.

Thanks.

( 5 comments | 7 points | on HN )
Re:Ask HN: Python 2.7 book, any recommendations? by daenney on Sunday October 28, 2012 @07:52AM (#4708737)
Dive Into Python is a good start, you can find it at:

- http://www.diveintopython.net/toc/index.html

Of course you can also just buy the book.

If you're a bit more familiar to programming, try Zed Shaw's Learn Python The Hard Way:

- http://learnpythonthehardway.org/

Though 'The Hard Way' is obviously not for the novice completely new to programming it does teach a bit more than just the language, things that make you into a better coder.

You'll also find a comprehensive list at:

- http://wiki.python.org/moin/BeginnersGuide/NonProgrammers

Re:Ask HN: Python 2.7 book, any recommendations? by klrr on Sunday October 28, 2012 @08:40AM (#4708790)
Thanks!
Re:Ask HN: Python 2.7 book, any recommendations? by epequeno on Sunday October 28, 2012 @10:48AM (#4709043)
I always recommend:

Think Python: How to Think Like a Computer Scientist http://www.greenteapress.com/thinkpython/

It's a pretty good overview of basic concepts of Computer Science, it's focus is Object-Oriented but does cover functional programming as well.

I would also pair any of the suggestions offered here with http://pythontutor.com/ adding the visual component of program execution will help absorb the material much quicker and get you used to the nuances of python.

Re:Ask HN: Python 2.7 book, any recommendations? by intellegacy on Sunday October 28, 2012 @12:51PM (#4709336)
To learn CS, Programming, and Python, I'm currently working through:

6.00x (MIT's edX Intro to CS course), Python https://www.edx.org/courses/MITx/6.00x/2012_Fall/info

CS101 (Udacity's Intro to CS course), Python http://www.udacity.com/overview/Course/cs101/CourseRev/apr20...

Python the Hard way (Zed Shaw's online book), Python http://learnpythonthehardway.org/book/

Code Academy, (Python track), Python http://www.codecademy.com/tracks/python

I consider 6.00x and CS101 to be my CS foundation and Python Hard way and Code Academy to be brush-up on the Python/programming. Working through all these in tandem really hits my brain in 4 different but complementary angles.

Re:Ask HN: Python 2.7 book, any recommendations? by shrikrishna on Sunday October 28, 2012 @08:54AM (#4708811)
"A byte of Python" is the best book I've seen so far that caters to a beginner audience. All you need to know about computers to read this book is to how to save text files. Really engaging.

http://www.swaroopch.com/notes/python/