title: While loop one-liner
body: <p>Is it possible for to have a python while loop purely on one line, I've tried this:</p>
  
  <pre><code>while n&lt;1000:if n%3==0 or n%5==0:rn+=n
  </code></pre>
  
  <p>But it produces an error message: <code>Invalid Syntax</code> at the <code>if</code> statement</p>