title: Colon Expected in Python
body: <p>I have a really simple test set up in a file named test1.py but it seems to give me a colon expected error, or alternatively when I run it it says invalid syntax.
      class test1:</p>
  
  <pre><code>    def counter(self):
          while loopcount &lt; 1000:
              loopcount = loopcount + 1
          if loopcount 1000:
              print(loopcount)
  </code></pre>