Live data from Hacker News

What did you use to teach yourself Python?

news.ycombinator.com

21–30 of 47 posts

Re: What did you use to teach yourself Python?

#21
I pretty much begin doing projects in it. Started with some basic web scrapers, then I built a site in Django. Yes, I was one of those bastards that was learning Python AND Django at the same time, but it worked out for me.

I read the Python tutorial, and I have Python in a nutshell which I find is a great way to look something up and get a pretty good, detailed explanation on it.

Re: What did you use to teach yourself Python?

#23

I pretty much begin doing projects in it. Started with some basic web scrapers, then I built a site in Django. Yes, I was one of those bastards that was learning Python AND Django at the same time, but it worked out for me. I read the Python tutorial, and I have Python in a nutshell which I find is a great way to look something up and get a pretty good, detailed explanation on it.

Also one of those "bastards."

Re: What did you use to teach yourself Python?

#24
Glancing at the standard Python modules is a great way to learn. They are generally high-quality and will reveal many hidden tricks within Python (this is where I learned generator expressions).

Also I like Googling for "python tricks" as there are many gems hidden just waiting to be discovered. Here are a few examples:

http://kogs-www.informatik.uni-hamburg.de/~meine/python_tric...

http://www.siafoo.net/article/52

http://stackoverflow.com/questions/101268/hidden-features-of...

Re: What did you use to teach yourself Python?

#25
I'm always in the middle of learning a new language or framework, and the general pattern is always the same:

Read a bunch, get a project idea, start hacking on it to practice "muscle memory", use reference documentation a lot, go back and re-read -- picking up lots of info you missed the first time, get back to hacking. Keep cycling.

Many moons ago, I distinctly remember reading the 'Programming Perl' book 7 times before I finally felt like I understood what I was doing.

Re: What did you use to teach yourself Python?

#26
post #18

Python tutorial: http://docs.python.org/tutorial/index.html And library reference: http://docs.python.org/library/index.html

These are great. The Python tutorial is very readable. You could use these side by side with any decent university course that you can find online. Here is a link to Caltech's introductory Python course, with exercises posted that ramp up in difficulty while surveying most of the Python basics. http://www.cs.caltech.edu/courses/cs11/material/python/index... And here is MIT's intro course on Python as well. Theirs inc…

I've recommended Cal's self-paced online study guides http://www-inst.eecs.berkeley.edu/~selfpace/cs9honline/ to good feedback for an introduction to python and programming in general, while myself mostly relying on the books by Alex Martelli (Python in a Nutshell and Python Cookbook)

Re: What did you use to teach yourself Python?

#27
I used an older edition of O'Reilly's Learning Python and found it to be very accessible and well written -- I'm surprised it hasn't been mentioned before: http://oreilly.com/catalog/9781565924642/

O'Reilly's Programming Python is not bad, but it's not a great book, either for beginners or journeymen.

Python in a Nutshell is more suitable as reference book, although I suppose you could use it to learn Python. For a Python reference book, I found David Beazley's Python Essential Reference to be more informative and better organized: http://www.amazon.com/Python-Essential-Reference-Developers-...

As other people have mentioned, Guido's online tutorial is pretty good, and you don't really much else to start programming in Python: http://docs.python.org/tutorial/index.html

I'm always puzzled by people recommending Mark Pilgrim's Dive into Python. I don't find it a good choice for Python beginners.

Re: What did you use to teach yourself Python?

#28
I had a job where (among other things) I was teaching Python (and the VPython package) to high schoolers. That made me comfortable with it. Combined with PyLab and a need to wean myself from matlab before graduation, I worked on a few homework projects for other science classes. And most recently, I've been doing project euler.
Post reply on HN