title: How can I read inputs as numbers?
body: <p>Why are <code>x</code> and <code>y</code> strings instead of ints in the below code?</p>
  
  <p>(Note: in Python 2.x use <code>raw_input()</code>. In Python 3.x use <code>input()</code>. <code>raw_input()</code> was renamed to <code>input()</code> in Python 3.x)</p>
  
  <pre><code>play = True
  
  while play:
  
      x = input("Enter a number: ")
      y = input("Enter a number: ")
  
      print(x + y)
      print(x - y)
      print(x * y)
      print(x / y)
      print(x % y)
  
      if input("Play again? ") == "no":
          play = False
  </code></pre>