title: Why is my code running infinitely?
body: <p>this is an even odd calculator that runs infinitely without any errors. Does anyone know how to fix this? Is it ok for me to call the method with the input from times?</p>
  
  <pre><code>def calc(time):
      i = 1
      while i &lt;= time:
         num = int(input("Enter your number"))
         i + 1
         x=0
         y=0
  
         if (int(num) % 2 == 0):
            even = True
            print("even")
  
  
         elif (int(num) % 2 != 0):
            odd = True
            print("odd")
  
  
  
         if (odd == True):
           x += 1
  
         elif (even == True):
           y += 1
  
  
  times = int(input("How many numbers will you be putting in this calc?"))
  
  calc(times)
  </code></pre>