views:

4876

answers:

19

For a beginner's perspective, can you answer the following?

  • Best tool(s) for Python development (for example, Notepad and Vim)
  • Best book to get started
  • Best website for the Python beginner
  • Best problem domain to do a sample project (what are Python-based solutions best suited for?)
+7  A: 

Eclipse IDE or even the quick and easy IDLE which comes with Python are great tools.

DiveIntoPython is a nice HTML based tool to get Started.

If you're looking for math based problems, check out Project Euler. It's got a lot of nice, simple problems that can really get you going on using some of the built in types, how to define functions, etc.

Baltimark
+6  A: 

Google AppEngine will allow you to create websites using Python. It's a good way to start learning Python with demonstrable world-visible projects.

seanyboy
I've used app engine, and it's good, but it's not all python. For example, you have to use yaml config files. Plus you can't have clean model classes like you can with django, since app engine is non relational.
PythonUser
+4  A: 

The greatest tool to start Python might well be IPYTHON. That's just an interactive shell.

It's way better than the original shell. It's in color, it supports autocompletion on your objects, hitting tab will lists all their methods, and have a nice way to navigate in your history.

It's a must if you just started Python.

For the documentation, the Python website is great.

For the IDE, Eclipse now has a plugin called pydev which is really good... But the editor you use is not really critical.

poulejapon
A: 

All you really need is the python site (http://python.org)

The little IDE they have (I think its' called python interactive? edit- its' IDLE - thanks @Baltimark) is pretty good. Basically a text editor that you can execute code in. I am a big fan of learning any new language in a text editor so that you don't get spoiled by the little things the IDE does automagically for you.

The docs on the website are pretty good for teaching too, you could start here: http://docs.python.org/tut/node3.html

AlexCuse
+37  A: 

Best Tool(s): this depends on your preference as far as editors go. I prefer a simple editor with syntax highlighting and a few other features such as regular expression find/replace. So I'd recommend nedit for Linux or Notepad++ for Windows. Textmate for a Mac is supposed to also be really good. If you prefer a feature-heavy IDE then I recommend Eclipse with the PyDev plugin.

Best Book: if you're a beginning to programming then you should take "How to Think Like a Computer Scientist: Learning With Python" (http://openbookproject.net//thinkCSpy/) and if you want a Python book for experienced programmers, then you want "Dive Into Python" (http://www.diveintopython.org/toc/index.html)

Best Website: the books mentioned above are both freely available online. However, the official Python tutorial is a good reference for anyone learning the language, since it's well organized and explains Python's language syntax (how do if statements work, how do exceptions work, etc) and built-in types and classes (how do I perform common list operations, how do I deal with dates and times, etc). You can find this at http://docs.python.org/tut/

Best Problem Domain: Python is used by Google, Industrial Lights and Magic, The Washington Post, NASA, and everything in between. It's a general purpose programming language and is well suited to most tasks. However, it is increasingly popular with web developers, so you might want to try building a web application with Django once you familiarize yourself with the language: http://www.djangoproject.com/

Eli Courtwright
Your link to How to think like a computer scientist: learning python is broken.
Chris
@Chris: Thanks for pointing that out, the link has now been fixed.
Eli Courtwright
A: 

I use TextPad, so I can't recommend a Python IDE. Most of my Python programs are short utility programs to accomplish specific functions.

I used Learning Python from O'Reilly to learn Python. I also have Programming Python from O'Reilly.

I have Python mainly to manipulate XML. It is also the scripting language in Paint Shop Pro. It can be used for most anything though.

I really like Python. The only thing I don't like is that indention is such a key part of the program structure. This means it is really important not to be moving your source around between different programs that handle tabs/spaces differently. It's also important that you are consistent in your use of tabs/spaces to indent.

bruceatk
+2  A: 

I learned Python from the Python tutorial and the free, online e-book Dive Into Python.

A great second book is Programming Python, which will teach you more about the standard library, including threading, networking, GUI programming with Tk.

Corey
+1  A: 

To get started, I think IDLE and the interactive command window is enough.

For GUI developement (wxPython), Boa Constructor does the job, it has a GUI designer a la Delphi.

Books: beside Dive Into Python (already mentioned), I can recommend wxPython in Action for wxPython GUI developement and Python Programming on Win32, somewhat old but with many advanced topics well covered.

PabloG
+6  A: 

Ok, so almost everything has already been stated, but two of my absolute favorites have yet to be: Python Pocket Reference (Third Edition is the most recent as of this post) by O'Reilly, and the Python Challenge. I have to also throw a vote in support of the wonderful Dive Into Python which everyone I know who has learned python adores, and the almighty iPython.

Honestly I could never fully stomach the giant tome which is O'Reilly's Programming Python though others I know have said good things about it. And though some people (like bruceatk proves) find Learning Python a good way to, well, learn python, but I could never really get engaged by it.

Here is where my two cents come into play. The Python Pocket Reference is a wonderful offline guide for all the builtin python functionality and a good bit of the core modules. And the damn thing is small enough to slide in a back pocket to boot (thus the Pocket Reference part I guess...). And since I like riddles & logic puzzles, the Python Challenge was a great way to get me engaged. These coupled with comp.lang.python, Dive Into Python, and the #python channel on irc.freenode.net, really got me started.

One last note on The Python Challenge. You mention "The Best Problem Domain" to get familiar with python using.... The Python Challenge is a very well done way of introducing programmers to the plethora of python modules. It shows you everything from pickle to basic image manipulation.

I hope this is of some help. (Oh, and one last resource, it's called StackOverflow).

akdom
+2  A: 

If you already know how to code:

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

I think this is a great quick reference.

Tyler
A: 

Best Tool: SPE. It's cross-platform, includes many handy tools, and has wxGlade built-in so you can quickly make graphical programs if you want

Best Book: I'm partial to Python, How to Program from Deitel Publishing. Though it's old (uses Python v2.2) it is written as a college textbook so not only is it pretty comprehensive, it also includes a lot of quizes and tests to help you learn. A second edition is supposed to be coming out next January. Learning Python from O'Reilly is also a great book, covering a lot more "esoteric" topics that you would expect in a computer science course.

Best Website: I would have to plug the tutorial that I wrote a few years ago. It may not be the best but it was selected for use as a college introductory course. Beyond that, the Python.org website and Dive into Python are natural picks.

Best Problem Domain to do a sample project: Scratch an itch. I learned Python to make a game. Find something you are interested in creating and just do it. Make a simple web browser, create a database to track your car's gas mileage, or maybe ask friends or family if there is something they would like you to make for them.

crystalattice
+2  A: 

I'm writing a Intro to Programming book using Python. It's an ebook and will be free, if cost is a concern.

crystalattice
+2  A: 
bastianneu
+6  A: 

Google's Python Class

...this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding... The first exercises work on basic Python concepts like strings and lists, building up to the later exercises which are full programs dealing with text files, processes, and http connections...

Ray Vega
A: 

A couple of great options ...

  1. PyCrust - it's a great Python shell with code completion and debugger. http://sourceforge.net/projects/pycrust/
  2. If you are looking for a more intermediate-level book, I would suggest Thinking in Python by Bruce Eckel. It covers advanced topics like design patterns which really help improve your understanding of Python.
  3. This is a bit off-topic, but gets me excited, and obviously teaches you more about Python itself: try out alternative implementations like IronPython and Jython. You can use them to explore other frameworks like .NET and Java and retain the zen of Python..
Suvir
A: 

http://learnpythonthehardway.org/index

Mmbop
+1  A: 

As a beginner there are a ton of resources out there. I believe in large part, thanks to the open source nature of Python, a ton of the best learning material is open content. Personally I found video tutorials a much better tool to get started, especially the first link below.

If you know at least a little bit about programming in any language, or just want a quick and dirty corporate style training: http://code.google.com/edu/languages/google-python-class/.

If you don't know anything about programming, or are looking for an academic style slow but thorough introduction: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/.

And for Python users of all levels there is something on: http://python.mirocommunity.org/.

nick
+1  A: 

http://www.pythonchallenge.com/ is a pretty cool site that I used to pick up Python for the first time. Its a series of puzzles that can be solved by writing python programs. The puzzles and programs get progressively harder the further you go.

Scott Lance
+1  A: 

I love me the Dreampie python client. It has very pleasant colors with syntax highlighting, and it allows you to save your history into HTML files. I just think that for fast prototyping it is more flexible to use than the regular python shell. As far as a full IDE, I recommend pyCharm. It is the most professional and polished IDE I have ever worked with. It's refectoring support, colors and fonts, svn integration, and overall usability is out of this world!

PythonUser