title: How to detect a variable in a function from a variaible outside it?
body: <p>Here is an example</p>
  <pre><code>new = '1'
  def test():
      n = 'Hello world'
      new = n
  print(new)
  test()
  </code></pre>
  <p>The result:</p>
  <pre><code>&gt;&gt;&gt;1
  </code></pre>
  <p>I wanted the 'new' variable in the function will change the value of the 'new' variable outside so the new can replace number 1 and change it to the string: 'Hello world'</p>