title: 'If' statements and one line Python scripts from the command line
body: <p>Why do I receive a syntax error for the following one-liner Python code?</p>
  <pre class="lang-none prettyprint-override"><code>python -c 'import re; if True: print &quot;HELLO&quot;;'
    File &quot;&lt;string&gt;&quot;, line 1
      import re; if True: print &quot;HELLO&quot;;
                  ^
  SyntaxError: invalid syntax
  </code></pre>
  <p>The following code works just fine:</p>
  <pre class="lang-none prettyprint-override"><code>python -c 'if True: print &quot;HELLO&quot;;'
  </code></pre>
  <p>How can I change my one line to execute my intended script on a single line from the command line?</p>