faqts : Computers : Programming : Languages : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 27 people (63%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Where can I get some good introductory examples of Python code?

Nov 30th, 2004 10:32
Chris Burkhardt, Joe Bloggs, Steve Holden, Nathan Wallace, unknown unknown,


The most relevant location for examples is probably 
    /python/source/Python-1.5.2/demo/scripts.
If you don't have the source distribution, get it from here:
    http://www.python.org/1.5/
Check out the Python snippets archive:
   http://tor.dhs.org/~zephyrfalcon/snippets/
Also check out 'The Vaults' at:
    http://www.vex.net/parnassus/
Finally, don't forget that all Python distributions (including
binary distributions) contain a lot of library and sample code:
it's always worth looking at samples from the system's authors!
Look in the "lib" subdirectory of your distribution to see how
various Python libraries have been coded, and in the "Tools"
subdirectory for some complete Python programs.