basic grammer error..

2009-12-16 Thread codefly
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?? -- http

Re: basic grammer error..

2009-12-16 Thread codefly
On 12월17일, 오전12시23분, Diez B. Roggisch de...@nospam.web.de wrote: codefly wrote: 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

i re-write it

2009-12-16 Thread codefly
error message is here.. when i type import code2 Traceback (most recent call last): File stdin, line 1, in module File code2.py, line 11 ~ ^ SyntaxError: invalid syntax and source code is here class codefly: def WaitFreecatz(self, hours): hours

Re: i re-write it

2009-12-16 Thread codefly
On Dec 17, 12:43 am, Diez B. Roggisch de...@nospam.web.de wrote: codefly wrote: error message is here.. when i type import code2 Traceback (most recent call last):   File stdin, line 1, in module   File code2.py, line 11     ~                        ^ SyntaxError: invalid syntax

Re: i re-write it

2009-12-16 Thread codefly
On Dec 17, 12:43 am, Diez B. Roggisch de...@nospam.web.de wrote: codefly wrote: error message is here.. when i type import code2 Traceback (most recent call last):   File stdin, line 1, in module   File code2.py, line 11     ~                        ^ SyntaxError: invalid syntax

another problem..

2009-12-16 Thread codefly
now.. another problem.. when i type me = code2() the error is here.. Traceback (most recent call last): File stdin, line 1, in module TypeError: 'module' object is not callable -- http://mail.python.org/mailman/listinfo/python-list