Results 1 to 10 of 10

Thread: What version of Python should I look for a tutorial for? And where?

  1. #1
    Join Date
    Oct 2010
    Beans
    110
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Question What version of Python should I look for a tutorial for? And where?

    I'm quite new to this whole application programming thing. I've done extremely extensive work in HTML and CSS, but those of course are just for making websites.

    This whole week I scoured through these and other forums trying to decide which language to start on and finally decided on Python (although Ruby was a close second, and I am still interested to hear your persuasions, should you have valid ones).

    Well today I go to the "Non-Programmers Tutorial for Python" and there's one for 2.6 and one for 3.0. Although I'm sure there are others, as I just realized from typing "Python" into the tag box.

    Should I learn the newest one? Is there any advantage to learning the older version, as I had seen some users show general disapproval with Python 3.0 but they didn't give any reasoning.

    Also, if you know of a better place to start off learning Python, or a program I should be doing it all in, I'm open to recommendations.

    Good to meet all of you who reply by the way, I'm going to be spending more and more time in these forums, I'm sure.

  2. #2
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: What version of Python should I look for a tutorial for? And where?

    I also started to learn Python recently and I discoverd that a lot of usefull libraries are not yet supported for version 3. The one I really needed was gstreamer and so I stayed with Python 2.6

    Apparently it will be quite easy to upgrade once you are ready because there is an automatic conversion tool.

  3. #3
    Join Date
    Oct 2010
    Beans
    110
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: What version of Python should I look for a tutorial for? And where?

    Ah, I wasn't aware of there being a conversion tool at all. That will be quite nice.

    I am leaning more towards 2.6 now.

    What are you using to learn Python? Like, books or a certain website? And are you writing it in any certain application?

  4. #4
    Join Date
    Nov 2008
    Location
    Where the Army tells me.
    Beans
    67
    Distro
    Ubuntu

    Re: What version of Python should I look for a tutorial for? And where?

    I am by no means a programmer. That having been said, Google has a cool python tutorial I liked.

    http://code.google.com/edu/languages...ass/index.html

    Never hurts to check it out, but the dude in the videos drives me bonkers! I find it easier to just listen to the videos, not actually watch them. Good info never the less. Enjoy!
    Work in progress

  5. #5
    Join Date
    Nov 2008
    Location
    Where the Army tells me.
    Beans
    67
    Distro
    Ubuntu

    Re: What version of Python should I look for a tutorial for? And where?

    I am by no means a programmer. That having been said, Google has a cool python tutorial I liked.

    http://code.google.com/edu/languages...ass/index.html

    Never hurts to check it out, but the dude in the videos drives me bonkers! I find it easier to just listen to the videos, not actually watch them. Good info never the less. Enjoy!
    Work in progress

  6. #6
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: What version of Python should I look for a tutorial for? And where?

    Quote Originally Posted by ThePhysician View Post
    Ah, I wasn't aware of there being a conversion tool at all. That will be quite nice.

    I am leaning more towards 2.6 now.

    What are you using to learn Python? Like, books or a certain website? And are you writing it in any certain application?
    I wanted to test out my idea for internationalization of computer speech and decided to do it in a programming language I never tried before. That way it kept me focussed on what I needed to learn and I just googled bits as I went (e.g getting started with gstreamer & python). The online Python language reference manual is indispensable

    However I haven't had incentive to do much Python since then.

    p.s. the conversion tool is called "2to3"
    Last edited by worksofcraft; October 24th, 2010 at 03:26 AM.

  7. #7
    James78's Avatar
    James78 is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Sep 2008
    Beans
    Hidden!

    Re: What version of Python should I look for a tutorial for? And where?

    It's simple. You should learn both, however, if you're intending your application to be using third party libraries, most of those are not yet compatible with 3.1, so go with 2.6 in that case. However if you're not going to be using third party libraries primarily, or you have verified they work with 3.1, then go with 3.1.

    Both versions work great, but of course 3.1 is better. So go with 3.1 if you can, otherwise you'll have to use 2.6. But there's no issues, security wise or anything related, if you use 2.6 over 3.1.

  8. #8
    Join Date
    Apr 2009
    Location
    Canada
    Beans
    157
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What version of Python should I look for a tutorial for? And where?

    Learning 2.6 isnt going to make 3.1 hard. The changes are pretty minor, and most of them work already in 2.6.

  9. #9
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: What version of Python should I look for a tutorial for? And where?

    you could also argument the other way round:
    you better learn 3.X because the most important stuff of that also works in 2.7.

    It doesn't really make a big difference. once you understand the basics of python, learning the differences between 2.X and 3.X is easy.

  10. #10
    Join Date
    May 2008
    Beans
    12

    Re: What version of Python should I look for a tutorial for? And where?

    Greg Wilson has done a great job upgrading the Software Carpentry course.
    Here is the section introducing python. Very good.

    http://software-carpentry.org/4_0/python/

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •