[python-advocacy] example code

Ray Allen rayallen153 at googlemail.com
Fri Nov 13 11:59:07 CET 2009


>
> Our job here is that of pitchman, huckster, pimp even.  We have very little
> time to capture somebody's interest.  What we are talking about is a tease.
>  Quick, obvious, to the point.  If our audience has to stop and think to
> understand what they're reading, we've already lost.
>
> In other words, KISS.
>

Agreed.  I've taken out the counter and put in a link to SimplePrograms.

"""Example Python Program"""
import random
python = [
        "Easy to read",
        "Fast to code",
        "Quick to learn",
        "Modular and object oriented",
        "Open source and cross platform",
        ]
python.append("Widely adopted")
random.shuffle(python)
print "Python is ... "
for feature in python:
    print feature
print "See more examples of Python code at \
http://wiki.python.org/moin/SimplePrograms"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/advocacy/attachments/20091113/faf2ac31/attachment.htm>


More information about the Advocacy mailing list