title: How to make it so input can only be a number and not a string
body: <p>I'm trying to make it so it only allows numbers, not strings.</p>
  
  <pre><code>number = (input("Pick a number "))
  </code></pre>
  
  <p>I have tried using <code>(raw_input(""))</code>, but this error comes up:</p>
  
  <blockquote>
    <p>"line 1, in 
    number = (raw_input("Pick a number "))
    NameError: name 'raw_input' is not defined"</p>
  </blockquote>
  
  <p>I also tried <code>int(raw_input(""))</code>, and the same error came up.</p>
  
  <p>I also tried <code>int(input(""))</code>, but an error came up aswell:</p>
  
  <blockquote>
    <p>TypeError: unsupported operand type(s) for +: 'int' and 'str'</p>
  </blockquote>