PDA

View Full Version : Python, Where to start?



cosine7
July 1st, 2006, 04:12 PM
After much delibaration, i have decided to go with Python (VB Programmer). Does any body know if there is a "noob using ubuntus guide to python" ?

Revert
July 1st, 2006, 04:18 PM
How to Think Like a Computer Scientist. (http://www.ibiblio.org/obp/thinkCSpy/)

Official Python Tutorial. (http://docs.python.org/tut/)

digby
July 1st, 2006, 05:53 PM
Also for your perusing pleasure, an "as basic as it gets" tutorial. (http://http://honors.montana.edu/%7Ejjc/easytut/easytut/)

Edit: That link is broken (thanks, Arndt). Try this. (http://honors.montana.edu/%7Ejjc/easytut/easytut/)

Daverz
July 1st, 2006, 06:36 PM
Tons of stuff already here (http://ubuntuforums.org/search.php?searchid=6456772).

krypto_wizard
July 1st, 2006, 07:59 PM
Byte of Python is a quick tutorial. I also liked Dive into Python. The list is endless..... Just get started!!

thumper
July 1st, 2006, 11:47 PM
I started with the O'Reilly book "Learning Python", but you out grow it very quickly.

Max Luebbe
July 2nd, 2006, 09:49 PM
If you have previous programming experience, I highly reccommend picking up the O'Reilly book "Python in a Nutshell". It's great for figuring out how to do "insert topic here" in 5 minutes or less, cookbook type stuff if you know the fundamentals.

Otherwise, check out the links Revert posted.
They're on the official Python site, which has lots of good links and information about getting started.

http://www.python.org

cosine7
July 3rd, 2006, 12:46 AM
How to Think Like a Computer Scientist. (http://www.ibiblio.org/obp/thinkCSpy/)

Official Python Tutorial. (http://docs.python.org/tut/)

They are great, will work on it thanks to everyone who posted

Arndt
July 3rd, 2006, 10:06 AM
Also for your perusing pleasure, an "as basic as it gets" tutorial. (http://http://honors.montana.edu/%7Ejjc/easytut/easytut/)

Somehow, you got "http://" in there twice. When I clicked the link, I got to a completely useless place. I use Firefox; maybe other browsers do something else. Here is the link with only one "http://" anyway: Tutorial (http://honors.montana.edu/%7Ejjc/easytut/easytut/).

cosine7
July 3rd, 2006, 01:19 PM
I suppose the frustating thing with all this, is that while pytho seems very straight forward, i'm used to working in the VB IDE, trying to find GUI isn't hard with Glade, it just how do i put it all together.... (that makes ssense)

kripkenstein
July 3rd, 2006, 06:05 PM
Well, if you are used to VB, then Python w/Glade is a bit different... you just have to get used to it I guess. Personally, I think the language advantages of Python outweight any IDE convenience differences. But it's a matter of opinion.

As for your question, it's a bit general, maybe ask something more specific, we'll be glad to help.

B0rsuk
July 3rd, 2006, 07:57 PM
I'm also diving into python.

One thing that tutorials I know miss is a set of ... tasks to perform. You know, a specification of simple programs for a Python student to write.

Of course, I can rewrite my ANSI C university asignments, but it's not the same. Or dust off my java programs and try to rewrite them.
But I'd prefer to try some programs which will introduce me (and learn to use) Python-specific features and good programming style.

Any ideas ?

cosine7
July 4th, 2006, 01:38 AM
I suppose i mean (PS i'm not having a whinge here) it straight forward enough to write a script in python, and not to difficult to make a gui in glade, but how do i marry them together?????

kripkenstein
July 4th, 2006, 05:44 AM
Perhaps the simplest way to learn how to 'marry' them together is to see an example, at least that's how I like to learn.

Personally, I learned about Glade&Python when I was messing about with the source for EasyUbuntu (http://easyubuntu.freecontrib.org/). You can download the source and see how things work. This is what is so good about Python, in my opinion - other people's code is actually readable...

If you want a more direct tutorial, there are several on the web (googling for Python and Glade), for example

One (http://handhelds.org/~nelson/pyglade/pyglade-tutorial)
Two (http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/)

Good luck, and let us know how things go.