title: Change global string within a method in python 3
body: <p>I googled my problem but haven't been able to find an answer. My problem is: 
  I'm trying to change a string within a method in python 3. I'm trying a little code like this:</p>
  
  <pre><code>number_a = 0
  number_b = 1
  
  word = 'empty'
  
  def something():
      if number_a &gt; number_b
          word = 'hello'
      else: 
          word = 'goodbye'
  
  something()
  print(word)
  </code></pre>
  
  <p>What Python is giving me for output is</p>
  
  <pre><code>empty
  </code></pre>
  
  <p>What am I doing wrong here?</p>