Best Python book/resource for beginners?

From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.

Announcements Posted on
Sign in to Reply
  1. Hoochy91's Avatar
    • Junior Member
    • Posts: 44
    Best Python book/resource for beginners?
    ok so im completely new to programming (apart from making a green square in BASIC a few years ago) and have decided to punt for Python 3.x as the way to go, there does seem to be a lot of resources out there for this language but I'm a bit lost as to where to start, so does anyone have any recommendations for a good, comprehensive book that doesn't require previous programming knowledge?
  2. Awoodrow2's Avatar
    • Community Assistant
    • Overlord in Training
    • Location: Durham (uni), Birmingham (home)
    • Posts: 2,135
    Re: Best Python book/resource for beginners?
    (Original post by Hoochy91)
    ok so im completely new to programming (apart from making a green square in BASIC a few years ago) and have decided to punt for Python 3.x as the way to go, there does seem to be a lot of resources out there for this language but I'm a bit lost as to where to start, so does anyone have any recommendations for a good, comprehensive book that doesn't require previous programming knowledge?
    Don't buy books; that's what the internet is for!

    http://wiki.python.org/moin/BeginnersGuide/Programmers

    I've been 'taught' Python at university, and most of my work consisted of me googling whatever function I was trying to use.

    Edit: If you want, I can probably send you the tutorial I used with examples and so on.
  3. fortransexual's Avatar
    • Full Member
    • Posts: 122
    Re: Best Python book/resource for beginners?
    (Original post by Awoodrow2)
    Don't buy books; that's what the internet is for!

    http://wiki.python.org/moin/BeginnersGuide/Programmers

    I've been 'taught' Python at university, and most of my work consisted of me googling whatever function I was trying to use.

    Edit: If you want, I can probably send you the tutorial I used with examples and so on.
    what course were you taught it on?

    I was thinking of learning it but when I mentioned to the theoretical physics guys they either laughed/sneered at it lol. Maybe i'll stick with c++
  4. SecondHand's Avatar
    • PS Helper
    • Exalted Member
    • Posts: 392
    Re: Best Python book/resource for beginners?
    http://learnpythonthehardway.org/

    Once you get to a certain stage then the best way to learn is to find an interesting problem to solve and then learn how to solve it.

    If you like Maths: Project Euler (This gets pretty deep pretty deep after ~50 problems)
    Otherwise: Programming Praxis

    They are both good sources of problems, the most important part of being able to program is thinking logically. If you can think logically and can find out where to get help (ie documentation, stackoverflow.com) then you can program anything only knowing the basics.

    Good luck, if you need any more help then PM me.
  5. fortransexual's Avatar
    • Full Member
    • Posts: 122
    Re: Best Python book/resource for beginners?
    (Original post by Hoochy91)
    ok so im completely new to programming (apart from making a green square in BASIC a few years ago) and have decided to punt for Python 3.x as the way to go, there does seem to be a lot of resources out there for this language but I'm a bit lost as to where to start, so does anyone have any recommendations for a good, comprehensive book that doesn't require previous programming knowledge?
    All I know about it is that it's meant to be a nicer introduction to object oriented programming that you would get from c++ and easier to self learn.

    depends what you want to do with it though
  6. SecondHand's Avatar
    • PS Helper
    • Exalted Member
    • Posts: 392
    Re: Best Python book/resource for beginners?
    (Original post by fortransexual)
    what course were you taught it on?

    I was thinking of learning it but when I mentioned to the theoretical physics guys they either laughed/sneered at it lol. Maybe i'll stick with c++
    Really? Python is a great language for scientists as you can write programs in it very quickly. It is true that C++ is quicker but for most cases I would use python.
  7. Awoodrow2's Avatar
    • Community Assistant
    • Overlord in Training
    • Location: Durham (uni), Birmingham (home)
    • Posts: 2,135
    Re: Best Python book/resource for beginners?
    (Original post by fortransexual)
    what course were you taught it on?

    I was thinking of learning it but when I mentioned to the theoretical physics guys they either laughed/sneered at it lol. Maybe i'll stick with c++
    This was Durham University's Physics course (all physics students do this same course regardless of specialisation) - Python's generally popular with our department when we actually have need to write code. I think at other unis the Physics department are more likely to teach things like C++ because it's a language with more applications at the moment.
  8. InvertedLayman's Avatar
    • Exalted and Worshipped Member
    Re: Best Python book/resource for beginners?
    Would anyone recommend reading this before "An Introduction to Computer Science - John Zelle"?
  9. fortransexual's Avatar
    • Full Member
    • Posts: 122
    Re: Best Python book/resource for beginners?
    (Original post by Awoodrow2)
    This was Durham University's Physics course (all physics students do this same course regardless of specialisation) - Python's generally popular with our department when we actually have need to write code. I think at other unis the Physics department are more likely to teach things like C++ because it's a language with more applications at the moment.
    The mandatory one at my uni for undergrads is C (I think python can be allowed if you get permission), the postgrads I have spoken to know c, fortran and c++ but I've only asked theoretical people so I suppose that makes sense - nobody else would bother learning fortran especially.

    I think the C++ learning curve would be too steep for many UG's or at least cause a lot of issues
  10. THESHade's Avatar
    • Adored and Respected Member
    • Location: Slovakia
    • Posts: 450
    Re: Best Python book/resource for beginners?
    learnpythonthehardway.org is really great if you are new or begginer. Thank me later It will teach you good habbits that you wanna have.

    EDIT: Ok, looks like I was too late but I noticed the post (quote to it) only when I posted ... NEvermind...
    Last edited by THESHade; 21-06-2012 at 16:14.
  11. SecondHand's Avatar
    • PS Helper
    • Exalted Member
    • Posts: 392
    Re: Best Python book/resource for beginners?
    (Original post by InvertedLayman)
    Would anyone recommend reading this before "An Introduction to Computer Science - John Zelle"?
    Never read it, I would start with learn python the hard way because the online version is free.
  12. Hoochy91's Avatar
    • Junior Member
    • Posts: 44
    Re: Best Python book/resource for beginners?
    (Original post by SecondHand)
    http://learnpythonthehardway.org/

    Once you get to a certain stage then the best way to learn is to find an interesting problem to solve and then learn how to solve it.
    Hey thanks that looks really good (and cheap), only thing is it looks like its for python 2.5.x, will it be a problem learning the basics using 2.x and then moving on to 3.x or are they similar enough that it doesn't really matter anyway?
  13. SecondHand's Avatar
    • PS Helper
    • Exalted Member
    • Posts: 392
    Re: Best Python book/resource for beginners?
    (Original post by Hoochy91)
    Hey thanks that looks really good (and cheap), only thing is it looks like its for python 2.5.x, will it be a problem learning the basics using 2.x and then moving on to 3.x or are they similar enough that it doesn't really matter anyway?
    They're not too different, 2.x is currently more common than 3.x. It would probably be easier to learn in 2.x if the book is in 2.x but in the future changing to 3.x won't be a problem.
  14. tamimi's Avatar
    • Peer Of The TSR Realm
    • Posts: 1,568
    Re: Best Python book/resource for beginners?
    Not many people know about this, but it's literally the best coding resource I've ever seen in my life.

    It's fantastic and I recommend it to anyone and everyone. http://www.pyschools.com/

    Kudos to the creator.
  15. Awoodrow2's Avatar
    • Community Assistant
    • Overlord in Training
    • Location: Durham (uni), Birmingham (home)
    • Posts: 2,135
    Re: Best Python book/resource for beginners?
    (Original post by Hoochy91)
    Hey thanks that looks really good (and cheap), only thing is it looks like its for python 2.5.x, will it be a problem learning the basics using 2.x and then moving on to 3.x or are they similar enough that it doesn't really matter anyway?
    I think pretty much everything is the same for the basics, apart from a couple of things like how division works.
  16. vaseand's Avatar
    • Exalted Member
    • Location: cumbria uk
    • Posts: 375
    Re: Best Python book/resource for beginners?
    (Original post by fortransexual)
    what course were you taught it on?

    I was thinking of learning it but when I mentioned to the theoretical physics guys they either laughed/sneered at it lol. Maybe i'll stick with c++
    People tend to stick with what they know and aren't very open. Python is the current language taught for physics at durham but alot of the professors still insist on using fortran. It's incredibly easy to use though and can be optimised to run faster if your using intensive programs (see psyco and similar)
  17. fortransexual's Avatar
    • Full Member
    • Posts: 122
    Re: Best Python book/resource for beginners?
    (Original post by vaseand)
    People tend to stick with what they know and aren't very open. Python is the current language taught for physics at durham but alot of the professors still insist on using fortran. It's incredibly easy to use though and can be optimised to run faster if your using intensive programs (see psyco and similar)
    I know pythons easier to use which makes it a good choice for undergrads - but many supercomputers are designed for fortran - even if new ones dropped fortran, it would not be python so these professors might have a good reason. If they are using fortran for the basic every day stuff and undergrad type questions I would agree that's backwards.

    Also it's not like it's python is the standard language taught everywhere - as I said, here (bristol) it's C for undergrads - and our theoretical physics, maths and computer science depts are not exactly clueless. Could do with finding out about some more uni's at two data points is a bit useless.

    I'm a bit annoyed that we don't do an object oriented language as standard, but I think i'll go for c++ in my spare time as I think that if I did need to use python for a job down the line it would be easier to make the transition to python than it would be going from friendly python to c++.
  18. vaseand's Avatar
    • Exalted Member
    • Location: cumbria uk
    • Posts: 375
    Re: Best Python book/resource for beginners?
    (Original post by fortransexual)
    I know pythons easier to use which makes it a good choice for undergrads - but many supercomputers are designed for fortran - even if new ones dropped fortran, it would not be python so these professors might have a good reason. If they are using fortran for the basic every day stuff and undergrad type questions I would agree that's backwards.

    Also it's not like it's python is the standard language taught everywhere - as I said, here (bristol) it's C for undergrads - and our theoretical physics, maths and computer science depts are not exactly clueless. Could do with finding out about some more uni's at two data points is a bit useless.

    I'm a bit annoyed that we don't do an object oriented language as standard, but I think i'll go for c++ in my spare time as I think that if I did need to use python for a job down the line it would be easier to make the transition to python than it would be going from friendly python to c++.
    Well supercomputers are never going to run python, that would be pointless as it isn't designed for highly intensive programs. That's where you would use C(++) but if you want to be quickly modelling various bits of physics etc. then python is ideal as it is quick and efficient to write.

    http://xkcd.com/353/
Sign in to Reply
Share this discussion:  
Useful resources
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.