basic grammer error..
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Wed Dec 16 11:36:40 EST 2009
codefly a écrit :
> class codefly:
>
> def WaitFreecatz(self, hours):
> hours = self.hours
> i = 1
> while i < hours:
> print 'i wait %s hours' %(i)
> i = i+1
> if i == hours:
> print '\nhe never comes'
>
>
> run error// what's wrong??
wrt/ the code : bad capitalisation on the class name and method name,
access to an inexistant attribute, useless param 'hours' (not used),
failure to use the appropriate iteration construct.
wrt/ your post: failure to post both the full traceback and the minimal
required code to produce this traceback.
More information about the Python-list
mailing list