title: Mutating a global variable from within a function
body: <p>If I start a script with something like:</p>
  
  <pre><code>someVar = "none"
  
  def someFunction():
      if whatever is whatever:
          someVar = "somethingElse"
      return someVar
  </code></pre>
  
  <p>Then, in a different function I check someVar, will someVar be "none" or "somethingElse"?</p>
  
  <p>I hoped "somethingElse", but instead, having written a function that sets someVar to something else, I'm finding that someVar remains "none".</p>
  
  <p>Is that expected? If you manipulate a global variable fromw ithin a function does the global variable change going forwards?</p>