I'm trying to learn the language... anyone have some code that they can post? simple code? difficult code? I just want to learn from examples. Any code that does something interesting/cool?
Anyone have any example python code?
Collapse
X
-
I cannot recommend this enough, but if you're looking for some great learning examples you should head on over to diveintopython. org and pick up a copy of the book for download. When you download the pdf file you will get a ton of example code.
If you're looking for example wxPython code head on over to the wxPython download page and download the wxPython docs, demos and tools package, which will give you an interactive demo that has a built-in code display page for each demo so that you can quickly copy and paste into your own programs. -
ok, cool. thanks. I learn so much better by looking at example code rather than by reading text about what to do.Originally posted by jlm699I cannot recommend this enough, but if you're looking for some great learning examples you should head on over to diveintopython. org and pick up a copy of the book for download. When you download the pdf file you will get a ton of example code.
If you're looking for example wxPython code head on over to the wxPython download page and download the wxPython docs, demos and tools package, which will give you an interactive demo that has a built-in code display page for each demo so that you can quickly copy and paste into your own programs.Comment
-
Hi,
I would like to point out something. If you are completely new to python, then use Byte of Python ( by Swaroop C.H.). I too used it when I started python. In general, it is ALWAYS recommended to read Byte of Python first, then read Diveinto Python. I was advised the same by one of my seniors, working for Fedora, well known among us for his Python knowledge. Further, even Byte of Python recommends using Dive Into Python, AFTER having read it. Byte of Python is much simpler and shorter.
One further advice, always have a python interpretor ready, run & test ex, if you are going to learn through examples.
Another tutorial is ThinkCSPy (How to think like a computer scientist - Python), Charming Python (most probably, it's by IBM [i'm not sure], version specific tutorial from www.python.org ( they are really good after you have earned some experience).
I keep all these handy.
Bye.Comment
-
Very cool. Thanks for the suggestions.Originally posted by AIProgrammerHi,
I would like to point out something. If you are completely new to python, then use Byte of Python ( by Swaroop C.H.). I too used it when I started python. In general, it is ALWAYS recommended to read Byte of Python first, then read Diveinto Python. I was advised the same by one of my seniors, working for Fedora, well known among us for his Python knowledge. Further, even Byte of Python recommends using Dive Into Python, AFTER having read it. Byte of Python is much simpler and shorter.
One further advice, always have a python interpretor ready, run & test ex, if you are going to learn through examples.
Another tutorial is ThinkCSPy (How to think like a computer scientist - Python), Charming Python (most probably, it's by IBM [i'm not sure], version specific tutorial from www.python.org ( they are really good after you have earned some experience).
I keep all these handy.
Bye.Comment
-
Hi,Originally posted by tharden3Very cool. Thanks for the suggestions.
My official, serious reply for this would be :
'Anytime bro, consider me as a google search ( HEY NOT IN FUNCTIONALITY, BUT IN ACCESSIBILITY.. .)
If you ever need any more help, just type in.
Bye.Comment
Comment