title: Break not working within my IF statement
body: <p>I'm not sure why my break statement is not working. </p>
  
  <pre><code>lst = []
  
  while True:
      try:
          number = int(raw_input("Enter a number: "))
          lst.append(number)
          print lst
          if number == 'q':
              break
      except:
          print "Please enter a number!"
  </code></pre>