title: inconsistent string to int error and response
body: <p>I've made a simple program where the users adds as many numbers as they would like then type 'exit' to stop it and print the total but sometimes it says the converting the string to int fails, and sometimes it does convert but then it has the wrong out put e.g I type 1 + 1 but it prints 1</p>
  
  <pre><code>def addition():
      x = 0
      y = 1
      total = 0
  
      while x &lt; y:
          total += int(input())
  
          if input() == "exit":
              x += 1
  
      print(total)
  
  addition()
  </code></pre>
  
  <p>I have tryed converting it to a float then to an int but still has inconsistency, I did start learning python today and am finding the syntax hard coming from c++ / c# / Java so please go easy on the errors</p>