title: Python syntax error: can't assign to operator in module but works in interpreter
body: <p>I have a string <code>a</code> and I would like to split it in half depending on its length, so I have</p>
  
  <pre><code>a-front = len(a) / 2 + len(a) % 2
  </code></pre>
  
  <p>this works fine in the interpreter but when i run the module from the command line python gives me a <code>SyntaxError: can't assign to operator</code>. What could be the issue here.</p>