title: How can I take an integer input from user and store it to an array?
body: <p>How can I take an integer input from the user and store it to an array? and once stored print it. Iv tried to do it this way but I get the error:</p>
  
  <blockquote>
    <p>'number' not defined</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>number = []
  
  if __name__=="__main__":
  x = int(raw_input("Enter a number:"))
  number.append(x)
  print number
  </code></pre>