> > ######
> > class Spam:
> >  """A meat for combining with other foods
> >  It can be used with other foods to make interesting meals.
> >  It comes with lots of nutrients and can be cooked using many
> >  different techniques"""
> > 
> >  def__init__(self):
> >  ## ... rest of code follows
> > ######

Note that this particular example in the tutor is not intended to be 
typed in! Its only a partial piece of code to illustrate what a doc 
string looks like! Maybe I need to emphasise that a bit more 
clearly in the tutor...

Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to