title: "NameError: name 'answer' is not defined" PyCharm
body: <p>I'm using Pycharm and gives me this error whenever I try to run the code: NameError: name 'answer' is not defined. Below is the problematic code.</p>
  <pre><code>array = []
  while integer:
      integer, value = divmod(integer, (int(target_system.get())))
      array.append(VA2SY[value])
      global answer
      answer = (''.join(reversed(array)))
  
  print(end)
  messagebox.showinfo(&quot;Eredmény:&quot;, answer)
  </code></pre>