views:

224

answers:

5

Can anyone point me towards a few simple Python programmes that I can download & have a look at the code in? Is there a website with a selection on?

Thanks!

+6  A: 

"Dive into Python" is a great start; lots of real-world code examples to help you get started.

Depending on your definition of "simple", here are some programs that are not much above the level of a basic "hello world" program: http://wiki.python.org/moin/SimplePrograms

akent
thanks! very useful!
James Wanchai
+3  A: 

a google search for "simple python scripts" gives good links

http://www.amk.ca/python/simple/ this seems to be the best one

http://www.codesampler.com/python.htm

http://www.dalkescientific.com/writings/NBN/python_intro/simple.html

there are many othes you can look here simple python scripts

best is to read books like dive into python

Anurag Uniyal
+1  A: 

Here's a simple program that prints Hello World:

print("Hello World")

You may freely download this program. You may also look at the code.

apphacker
You should really make that Py3k compliant.
John McCollum
Done! Man I just made an entire program 3k compliant. Whew. I need a break.
apphacker
made it PEP-8 complaint
SilentGhost
Wow, that may be a rare example of a truly bug-free program.
Craig McQueen