You are not logged in.

#1 2010-11-12 22:24:19

JHeaton
Member
From: United Kingdom
Registered: 2009-05-16
Posts: 158

Python learning resources

Figured I'd have a play with this one, too. Can anyone point me in the direction of some good resources for learning Python? I've never tried the language before but I'm interested in seeing what I can do with it and whether or not I'd get on well with it or not. Beginners' guides and tutorials that are easy to follow but also cover things in enough detail are the kind of thing I'm looking for. For those who have used the resources, could you let me know how you found them and what you liked and disliked about them?

Thanks. smile

Offline

#2 2010-11-12 23:49:11

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: Python learning resources

I am no python expert, but I believe the official python tutorial and Dive into Python (for python 2 or python 3) are obligatory reading (in that order). However, as in all programming tutorials, they are a bit tiresome to follow. So my suggestion, after understanding the basics, is to try to actually code something you find interesting. Try to solve problems as they appear or try to improve previous code using newer knowledge.

Offline

#3 2010-11-13 00:06:30

JHeaton
Member
From: United Kingdom
Registered: 2009-05-16
Posts: 158

Re: Python learning resources

Foucault wrote:

I am no python expert, but I believe the official python tutorial and Dive into Python (for python 2 or python 3) are obligatory reading (in that order). However, as in all programming tutorials, they are a bit tiresome to follow. So my suggestion, after understanding the basics, is to try to actually code something you find interesting. Try to solve problems as they appear or try to improve previous code using newer knowledge.

Thanks for this, I will start looking in to it tomorrow. smile

I definitely think you're right on just trying to code stuff I'm interested in once I have the basics pinned down; oddly, I've never got very far with languages I've tried to learn but at work I have to use VBScript to do various things and by having tasks set for me, I've expanded my knowledge of the language far beyond the point that I would like to. My only problem is finding things I need to do at home that involve the languages I'm fiddling with.

Sound advice, thank you. smile

Offline

#4 2010-11-13 00:15:49

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: Python learning resources

http://www.python-forum.org is a great place to ask questions, also solving other people's problems helps alot

Offline

#5 2010-11-13 02:10:51

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: Python learning resources

best way to learn is to dive right in smile
The Python Challenge


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#6 2010-11-13 02:40:09

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: Python learning resources

You can also try your hand at http://projecteuler.net/


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

#7 2010-11-13 03:16:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,296

Re: Python learning resources

It sounds as if you are a, er..., less than seasoned programmer.  That might be a good thing.  I came from strongly typed languages (C, C++, Pascal, and some Java).  In these languages, variables have to be defined as to what they represent.  These languages are also largely imperative.  In general, that means you specify the specific steps that are to be performed on each datum.  Kind of like micro-management of the data.

Part of the beauty of Python is that it allows you to think of the data and its structure.  Ever since MBAs discovered it, I hate the word 'Paradigm'.  Never-the-less, I experienced a sudden paradigm shift when I realized how one could describe complex data as Lists,  dictionaries, tuples, and combinations thereof -- and then use functional concepts such as list comprehensions, maps and filters to operate on those data as sets.

I would suggest as you start on Python, try to develop an understanding of the difference between strong and weak types, and between imperative and functional programming.   My first couple attempts at Python failed because I was trying to use only imperative programming and a collection of disjoint simple variables that I failed to group together in a logical way.  Once I got past that, and started looking at how to organize the data, and operate on it at a higher level, I began to appreciate Python.  It also (even though I have not learned them) gave me an appreciation for Ruby and Lisp.

Good luck


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2010-11-13 04:42:20

xl666
Member
From: México
Registered: 2010-11-12
Posts: 7

Re: Python learning resources

Well, obviously the best way to learn a language is programming in it. For learning a language deeply I prefer to read books. A book that I find really good for learning the core of python is "Learning Python" http://oreilly.com/catalog/9780596158071

Last edited by xl666 (2010-11-13 04:42:35)

Offline

#9 2010-11-13 10:13:15

JHeaton
Member
From: United Kingdom
Registered: 2009-05-16
Posts: 158

Re: Python learning resources

ewaller wrote:

It sounds as if you are a, er..., less than seasoned programmer.  That might be a good thing.  I came from strongly typed languages (C, C++, Pascal, and some Java).  In these languages, variables have to be defined as to what they represent.  These languages are also largely imperative.  In general, that means you specify the specific steps that are to be performed on each datum.  Kind of like micro-management of the data.

I wouldn't necessarily say I'm a beginner, but yeah, I'm no expert. I have experience with other languages (Pascal, Perl, a bit of C and a bit of Java) but I've never been able to progress very far because of a lack of things to do with them. I want to build applications, but I can never figure out what to build. sad

Thank you for the advice, though, it seems very helpful. I'll give that a try. smile

xl666 wrote:

Well, obviously the best way to learn a language is programming in it. For learning a language deeply I prefer to read books. A book that I find really good for learning the core of python is "Learning Python" http://oreilly.com/catalog/9780596158071

Funnily enough, I've just borrowed this book from someone. Will see how it goes, it seems interesting. big_smile

Thank you for all the replies so far, very helpful. Hopefully I'll get in some decent learning before my courses start next year and I lose all my free time. tongue

Offline

#10 2010-11-13 18:22:17

Eratosthenes
Member
Registered: 2009-11-02
Posts: 19

Re: Python learning resources

http://greenteapress.com/thinkpython/thinkpython.html

Think python might be a bit beginnerish, but is well done. It is a free download, incl as a PDF, if that is what you prefer.

Offline

#11 2010-11-13 22:15:06

DeletedUser201201
Banned
Registered: 2010-02-27
Posts: 73

Re: Python learning resources

I think that before anything else you should take a look here. If you are a new programmer you should follow it through all the way, thinking of it as a beginner's manual. If not, just pass it on quickly on a week or two. Oh did I mention its a free pdf.

Offline

#12 2010-11-14 19:21:03

JHeaton
Member
From: United Kingdom
Registered: 2009-05-16
Posts: 158

Re: Python learning resources

Both of those PDFs seem very good. I've gone through a bit of Learn Python the Hard Way and it seems good so far, although whether or not it will prove to be suitable later on I don't know. Very easy so far and I'm pretty much just revising concepts I know already. What I think I'm going to do is do as Foucault said. I'll rewrite all of my scripts at work using Python, that way I definitely have something to do with the language to help me learn and practice. smile

Offline

#13 2010-12-29 16:34:38

thdn
Member
Registered: 2010-11-22
Posts: 13

Re: Python learning resources

Offline

#14 2010-12-29 17:42:15

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: Python learning resources

This is a nice book

Last edited by Mr Green (2010-12-29 17:43:21)


Mr Green

Offline

#15 2011-01-26 09:20:46

deHaan
Member
Registered: 2011-01-26
Posts: 1

Re: Python learning resources

I found the guide by Alan Gauld to be the most easiest one. He has a version for Python2 and Python3. Just ignore the stuff about VB and Javascript (unless you want to grab those along the way aswell.)

edit: with link: http://www.alan-g.me.uk/

Last edited by deHaan (2011-01-26 09:21:12)

Offline

#16 2011-01-26 20:40:56

sitquietly
Member
From: On the Wolf River
Registered: 2010-07-12
Posts: 220

Re: Python learning resources

JHeaton wrote:

Can anyone point me in the direction of some good resources for learning Python? ... Beginners' guides and tutorials that are easy to follow but also cover things in enough detail are the kind of thing I'm looking for.

MIT Opencourseware 6.00--Introduction to Computer Science and Programming teaches basics of Python programming.  It is not a comprehensive resource for you but it may be a pleasant experience to sit back and watch the video lectures to "absorb" some Python language.

6.01 Introduction to Electrical Engineering and Computer Science I uses Python and the course text is available as pdf chapters (including Chapter 2: Programming in Python).  This course may be interesting because it shows Python in an engineering context.

Offline

Board footer

Powered by FluxBB