Live data from Hacker News

Ask YC: What is the best Python book for a beginner?

news.ycombinator.com

11–20 of 24 posts

Re: Ask YC: What is the best Python book for a beginner?

#12
post #10

http://www.pythonchallenge.com/ is also a great way to learn (albeit secondary to a standard book)

I found the python challenge incredibly hard. Not programming-wise but it's just really hard to know what to do next in most puzzles.

I'd rather recommend http://projecteuler.net

Re: Ask YC: What is the best Python book for a beginner?

#14

"Beginning Python - From Novice to Professional"

I'll back you up there. It's what I'm using and it is wonderful except for one thing: it doesn't have that much real and difficult examples throughout, only some sprinkled here and there and the rest of the scripts are nonsense.

Re: Ask YC: What is the best Python book for a beginner?

#15
I read about half of Dive Into Python, and it was pretty advanced stuff. It's good if you know another programming language very well. The book starts out slow, but the difficulty curve accelerates very fast. I wouldn't read it cover to cover. It would be a good reference to have though.

I'd suggest skimming the table of contents of both books first.

Then again, Dive Into Python is free, so you might as well start with that, and if it's too advanced, switch to Learning Python (I read the first 100 pages of it last summer, and I thought it was good, I'm a fan of O'Reilly).

If you really want a beginner book, Learning Python is a great choice. It was just updated too. Good luck.

Re: Ask YC: What is the best Python book for a beginner?

#16
Have you tried O'Reilly's Safari service? For 14 bucks a month, you get a subscription that will let you have access to 10 different books at a time. That way, you can read different chapters on the same subject.

I tend to bounce around in what I learn and try to look at things from different angles. I find that different authors cover one subject better than another. And, thay way, I don't have to feel bad about buying the book and only reading 2-3 chapters out of it.

Re: Ask YC: What is the best Python book for a beginner?

#17
I found Core Python Programming by Wesley J. Chun is the best python book so far that I requested the university library to get it (among couple other books) for my research.

I started with Beginning Python: From Novice to Professional. Extremely helpful and easy to follow book, since I already have few languages in my repertoire.

After you are comfortable with python and its syntax then get some python cookbooks.

Good Luck

Re: Ask YC: What is the best Python book for a beginner?

#18
If you want to learn Python and are interested in gaming, you could write some scripts for Counter-Strike: Source / HL2 / TF2:

http://python.eventscripts.com

Tutorials (some are pure Python, others are game-related:

http://python.eventscripts.com/pages/Category:Tutorial

One kinda neat example:

http://python.eventscripts.com/pages/Mugmod

Re: Ask YC: What is the best Python book for a beginner?

#19
I'm not a big fan of the O'Reilly books on Python, but if you prefer the style of Learning Python, you can't really go wrong. Most of the basic Python tutorials teach more or less the same material, so you won't miss too much by choosing one tutorial over the other.

I personally recommend How To Think Like A Computer Scientist (http://openbookproject.net/thinkCSpy/). It doesn't cover everything in 2.5, but I think most of the stuff in 2.5 you're better off just reading the release notes after you have a basic grasp on the pre-2.5 stuff. You're going to be reading a lot of code to master the nuances of Python, and most of it is pre-2.5 Python, so you should know it well.

If you want to use that book, there's also assignments and projects available from UC Berkeley's self-paced Python course, CS 9H, at http://www-inst.eecs.berkeley.edu/~selfpace/cs9honline/ if you want more structure.

Re: Ask YC: What is the best Python book for a beginner?

#20
If you're posting here, presumably you know how to program already. In that case working through the free "Dive into Python" PDF really is the first step you should take. After the first seven chapters you should then be able to make do with the online docs (the remaining chapters cover specialized material like HTML parsing, SOAP calls and test based development which are, in my opinion, not the first thing you should be worried about when learning a new language).

"Learning Python" and especially "How to think like a computer scientist" are targeted towards people with very little programming experience. If that's you, my vote goes to "How to think like a computer scientist" (ymmv).

Post reply on HN