Ask HN: Am I learning Python the right way?
What I have done so far:
1) Finished Learning Python the Hard Way
2) Went through the Django tutorial online. Realised I was still a long way off from trying to understand a Python framework and I wasn't grounded in the basics yet.
3) Did HeadFirst Python but stopped half way. Didn't like their approach. Thought their HTML/CSS series was better.
4) Spent the last week attempting to do exercises here: http://www.cse.msu.edu/~cse231/PracticeOfComputingUsingPython/index.php. I found the site randomly. Found myself asking more questions on Stackoverflow after I couldn't find the solutions through googling.
5) Got stuck on one of the questions where I needed to access a specific value from the tuples inside my list. I realised that must be a really basic thing you have to know
6) Once again googled for it but found nothing. Posted the question on SO and getting flamed for asking a newbie question.
I think I'm doing this the wrong way. I like material/books that encourages hands-on participation rather than books that just 'talk at you'. Should I just read a whole bunch of them beginner books over and over again?
I'm pretty sure that I still wouldn't have found the answer to my question (use list comprehension) by doing so.
tl;dr: What's the best approach to learn python for a beginner?
6 comments
[ 2.4 ms ] story [ 27.1 ms ] threadI started out with python doing project euler (http://projecteuler.net/) though that really won't give you that good of a background in python for the web and I mostly learned by going through the tutorial on the python website and going through the docs.
If you want a book I think apress begginning python is among the more recommended books after you have started out, and for the sake of time and your wallet avoid oreily's python books as they are about 700 pages over length.
You might want to give the Python Essential Reference a try instead as it is quite a good reference and something like the first 6 chapters are a nice quick tutorial, though it probably is more high level than you want (probably read it in a store first).
The django book (http://www.djangobook.com/) is available for free and is good for learning the internals though it can be a bit dry and there a some screencasts for django around if you look.
Hopefully that helps.
http://code.google.com/edu/languages/google-python-class/ind...
Some sites are a bit harsh to people new to a language. http://www.reddit.com/r/learnpython is often much more tolerant.
Took me from early December to mid Jan to get a full website up from not knowing Python/Django in the slightest. (I did do 1.5 years in CSC learning Java in college, but transferred to an art major... but the prev. experience with a different language certainly helped with learning Python).
The app: http://weddinginvitelove.com
I started out by finding a tutorial doing something kind of related (took a blog tutorial, turned a blog post model into a designer profile). Found some friends who were experts in Django (both of whom I only knew through Twitter at that point) to bounce questions off of ("I'm trying to do this but it isn't working, what am I doing wrong?"). Their help was invaluable.
So, basically, just start doing it and you'll start picking it up a lot faster.
I recommend you to join your nearest Python User Group. You will be in contact with python developer, and sooner than later you will doing python for living.