title: Testing Collatz Conjecture by Python
body: <p>I am a beginner to Python, so please don't mock at me if I asked a silly question. I tried to test the Collatz Conjecture by using Python, and I wrote several lines of code as following:</p>
  <pre><code>a = 1
  
  while True:
      i = a
      while i != 1:
          if i%2 == 0:
              i = i/2
          if i%2 != 0:
              i = 3*i + 1
      print(a, 'will eventually fall to 1')
      a = a + 1
  </code></pre>
  <p>The result I expected to get were something like:</p>
  <p>1 will eventually fall to 1
  <br />
  2 will eventually fall to 1
  <br />
  3 will eventually fall to 1
  <br />
  4 will eventually fall to 1
  <br />
  5 will eventually fall to 1
  <br />
  ...</p>
  <p>I expected the program would continue to produce output forever until I interrupted it manually. However, when I ran my code, I only got one line of output:</p>
  <p>1 will eventually fall to 1</p>
  <p>What is wrong with my code? I cannot figure the mistake out, thank you so much if you can correct me.</p>