Revision [22776]

This is an old revision of PythonLearn made by CrustyLobster on 2012-07-27 05:27:33.


HomePage > Software Index > Development


Welcome to Learn Python from Puppy School

Python is available in the Puppy programmers devx In Puppy 5.3.3 click on Slickpet icon and go to SFSget in Slickpet. Then click on the Gcc button to download and install. To run Python from terminal type python
## Random fruit response
# Lobster March 3 2012

import random

verb = ['erratic', 'unbelievable', 'unfortunate', 'inconsequential']
fruit = ['raspberry', 'pomegranite', 'bananana', 'grape', 'loganberry']
print "You are an" , random.choice (verb) , random.choice (fruit)
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki