title: Why do I get an invalid syntax when defining a global variable?
body: <pre><code>def pLatin_converter (self):
      movetoend = &quot;&quot;
      index = 0
      global pig = &quot;&quot;
  </code></pre>
  <p>I'm getting an 'invalid syntax' on the <code>global pig = &quot;&quot;</code> line and I don't understand why.</p>