I am taking a class that requires Python. We will review the language in class next week, and I am a quick study on new languages, but I was wondering if there are any really great Python books I can grab while I am struggling through the basics of setting up my IDE, server environment and all those other "gotchas" that come with a new programming language. Suggestions?

25 Answers

36
kamens On Best Solutions

I loved Dive Into Python, especially if you're a quick study. The beginning basics are all covered (and may move slowly for you), but the latter few chapters are great learning tools.

Plus, Pilgrim is a pretty good writer.

10
Peter Hilton On

I expect that Learning Python is useful, and quick to read.

6
ljs On

I found Learning Python really good. It's pretty long (>700 pages) but extremely readable and you can rip through it very quickly given you're a quick study :-)

7
dF. On

Since you're already familiar with other languages and a quick study, I'd recommend Python in a Nutshell by Alex Martelli, very concise and also useful later on for reference.

8
goxe On

Two good online-books, that also describes the basics of the environment is diveintopython.net and the "official" tutorial.

0
Justin Bennett On

Dive Into Python is an excellent book geared toward programmers wanting to pick up Python. The best part is that it's freely available online. I started learning a little Python a few months ago and I've worked through about half of the book. It's a very comprehensive tool that's good for learning the language and also for a reference down the road.

Edit: Kamens is a faster typer than I am.

1
Chris Upchurch On

Learning Python is how I learned the language. It's a quick read, and very well organized around fundamental concepts.

1
Mark Biek On

Python Pocket Reference.

I have both Learning Python & Programming Python and I almost always go to the Pocket Reference first.

2
Eli Courtwright On

Many people have suggested Dive Into Python, which is probably the best Python book out there for someone who's already a good programmer. However, if you're new to programming, the best book is probably "How to Think Like a Computer Scientist: Learning With Python" (http://openbookproject.net/thinkCSpy/index.xhtml)

1
jeremiahd On

I'll second Daniel's recommendation of Python in a Nutshell. If you're quick to pick up new languages, it's probably exactly what you're looking for. There's a nice overview of how the language works, and then a discussion of most of the standard library. It's concise and clear, and doesn't assume that you don't know basic programming things already.

2
Joril On

I think that Think Python is very good for first-time programmers. Pleasant writing style too..

0
Tyler On

I learned most of my initial pythonese from this super-handy quick reference:

http://rgruet.free.fr/PQR2.3.html

0
Martin Clarke On

I tried learning from Programming Python and I didn't like it. I'm going to give Python in a Nutshell a try as per suggestions below.

1
mluebke On

I'm a big fan of Core Python

1
Pavlo Bazilnskyy On

I quite enjoyed reading H.Deitel - Python - How to Program. It's very long but basics of Python are covered in first 300-400 pages. It's a nice book for beginners.

-1
mtruesdell On

Dive Into Python is a good choice, but I also recommend Python Visual Quickstart Guide For someone that knows how to program and wants to get the 80% of the basics of the language, it's a good deal. And it retails at $20. It's certainly not the last thing I'd read on python, but it's a good first one.

0
Jason Baker On

I learned more from the python cookbook than any other python book.

-1
Andrew Szeto On

I have to second (third? fourth?) Dive Into Python. It's just great for quick reference and reading. As an added suggestion, read some code! That always helps.

0
Community On

Dive into Python for a fast jump start, Learning Python (O'Reilly) is better for the long complete journey.

Just my $0.02.

8
Karl Fast On

There are quite a few good books online. These have a broad scope, similar to O'Reilly's "Learning Python":

Python.org maintains two lists of for learning python, depending on your level of programming expertise:

I highly recommend "Python Essential Reference" by David Beazley. You might find this sufficient if you're an experienced programmer and want a concise and comprehensive overview of the language. If you're a novice programmer this probably won't provide enough hand-holding. While I learned Python from other books, this is—by far—the most useful python book I own. Some notes:

  • This is a reference book not a tutorial
  • The first 125 pages are a complete overview of the language. It's not a tutorial, but it covers the language from top to bottom
  • If you're an experienced programmer, this should be enough to learn the language
  • If you're a novice programmer, start with a different tutorial
  • The rest of the book is a comprehensive and extremely useful reference
  • The 3rd edition covers up to python 2.4, but not beyond.
  • The 4th edition is due for release in July 2009

Note: I originally posted the same/similar answer to: https://stackoverflow.com/questions/934937/concise-python-book-recommendation/935081#935081

I was asked to put a copy of my answer here.

2
Martin Beckett On

This is good, it's a very easy read and the excercises can be completed with only a crayon.
(I think this is what Jeff was talking about when he wanted rich media content in the IDE)

alt text http://ecx.images-amazon.com/images/I/61NA2175H0L._SL500_AA240_.jpg

1
Andrew Noyes On

It may not be as applicable, but I just cracked open Programming in Python 3 by Mark Summerfield and so far it seems pretty good, although it is focused on Python 3, so if you're planning on learning something like Django, which hasn't made the jump to Python 3 and likely won't for some time, this book might not be the best. Additionally, even though Python 3.0 has been out for a little while now, I can almost guarantee your course is using Python 2.x. Academia has a tendency to trail behind. I had a C++ recitation professor who I swear wasn't aware that C++ has been updated since 1985.

2
womble On

I have also been using Programming in Python 3 by Mark Summerfield and find it very good.

0
melhosseiny On

I'm currently reading Head First Python which came out in November, 2010. I didn't read Dive Into Python but I read Dive Into HTML5 by the same writer and It was well written.

0
blakcaps On

I recommended this ebook A Byte of Python