i re-write it

codefly corona10 at gmail.com
Wed Dec 16 10:38:36 EST 2009


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 = self.hours
          i =1
          while i < hours:
                print ' i wait for %s hours' %(i)
                i = i+1
          if i ==hours:
                print 'he never comes'





More information about the Python-list mailing list